diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/CHANGELOG.md b/sdk/databoxedge/azure-resourcemanager-databoxedge/CHANGELOG.md
index 0ed4046c5a0ea..0a0c8151a8afb 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 (2021-09-30)
+- 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..405dbd6095f55 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,8 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
+
+
## Troubleshooting
## Next steps
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/pom.xml b/sdk/databoxedge/azure-resourcemanager-databoxedge/pom.xml
index e93ad9bd94378..7f894cfb0f191 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/pom.xml
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/pom.xml
@@ -1,67 +1,86 @@
- 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
-
-
-
-
- com.azure
- azure-core
- 1.20.0
-
-
- com.azure
- azure-core-management
- 1.4.1
-
-
-
-
-
- org.jacoco
- jacoco-maven-plugin
- 0.8.7
-
- true
-
-
-
-
+
+ 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
+
+
+
+
+ com.azure
+ azure-core
+ 1.20.0
+
+
+ com.azure
+ azure-core-management
+ 1.4.1
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.7
+
+ true
+
+
+
+ org.revapi
+ revapi-maven-plugin
+ 0.11.2
+
+
+
+ -
+
java.method.addedToInterface
+
+ -
+ true
+
.*
+ com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*
+
+
+
+
+
+
+
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..45b3c4f833ede 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
@@ -9,7 +9,6 @@
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
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 +16,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;
@@ -64,12 +72,16 @@
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 +92,10 @@ public final class DataBoxEdgeManager {
private Roles roles;
+ private Addons addons;
+
+ private MonitoringConfigs monitoringConfigs;
+
private Shares shares;
private StorageAccountCredentials storageAccountCredentials;
@@ -90,9 +106,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 +153,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 +193,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,6 +260,9 @@ 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);
}
@@ -241,10 +272,7 @@ public DataBoxEdgeManager authenticate(TokenCredential credential, AzureProfile
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies
- .add(
- new BearerTokenAuthenticationPolicy(
- credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies);
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
@@ -265,6 +293,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 +325,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 +373,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 +430,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 +446,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..a40d2ce71aa34
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/AddonsClient.java
@@ -0,0 +1,220 @@
+// 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;
+
+/** 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.
+ */
+ @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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/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/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..d0359a11b7b98 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,9 +13,11 @@
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;
@@ -101,37 +103,6 @@ public interface DevicesClient {
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.
*
@@ -160,7 +131,7 @@ DataBoxEdgeDeviceInner createOrUpdate(
* @return the Data Box Edge/Gateway device.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DataBoxEdgeDeviceInner createOrUpdate(
+ Response createOrUpdateWithResponse(
String deviceName, String resourceGroupName, DataBoxEdgeDeviceInner dataBoxEdgeDevice, Context context);
/**
@@ -299,20 +270,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.
+ */
+ @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 +319,7 @@ 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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getExtendedInformationWithResponse(
@@ -519,6 +518,37 @@ 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.
+ */
+ @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.
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..27fcede0a663d
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DiagnosticSettingsClient.java
@@ -0,0 +1,223 @@
+// 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;
+
+/** 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.
+ */
+ @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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.
+ */
+ @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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/MonitoringConfigsClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/MonitoringConfigsClient.java
new file mode 100644
index 0000000000000..0c14c11080dac
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/MonitoringConfigsClient.java
@@ -0,0 +1,215 @@
+// 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;
+
+/** 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.
+ */
+ @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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/OrdersClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/OrdersClient.java
index 6f7bc753adbd0..e7f60834d4495 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,6 +11,7 @@
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;
/** An instance of this class provides access to all the operations defined in OrdersClient. */
@@ -180,4 +181,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.
+ */
+ @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/StorageAccountsClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/StorageAccountsClient.java
index 9badd639ba648..53d3df684f7b5 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
@@ -16,7 +16,7 @@
/** 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 +29,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.
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..101d1116cd40d
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/SupportPackagesClient.java
@@ -0,0 +1,81 @@
+// 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.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.databoxedge.models.TriggerSupportPackageRequest;
+
+/** 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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/UsersClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/UsersClient.java
index 6fc2a24cfbdc3..c97bb6d56428e 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
@@ -33,7 +33,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.
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..dfb9f9ee7c3cf 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
@@ -6,11 +6,13 @@
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;
import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
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;
@@ -21,6 +23,12 @@
public class AlertInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AlertInner.class);
+ /*
+ * Alert generated in the resource
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* Alert title.
*/
@@ -61,8 +69,18 @@ public class AlertInner extends ArmBaseModel {
* Alert details.
*/
@JsonProperty(value = "properties.detailedInformation", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map detailedInformation;
+ /**
+ * Get the systemData property: Alert generated in the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the title property: Alert title.
*
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..74133bcb850ae 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
@@ -6,6 +6,7 @@
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;
@@ -19,6 +20,12 @@
public class BandwidthScheduleInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(BandwidthScheduleInner.class);
+ /*
+ * Bandwidth object related to ASE resource
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* The start time of the schedule in UTC.
*/
@@ -43,6 +50,15 @@ public class BandwidthScheduleInner extends ArmBaseModel {
@JsonProperty(value = "properties.days", required = true)
private List days;
+ /**
+ * Get the systemData property: Bandwidth object related to ASE resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the start property: The start time of the schedule in UTC.
*
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..961a002451149 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
@@ -6,6 +6,7 @@
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;
@@ -21,6 +22,12 @@
public class ContainerInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(ContainerInner.class);
+ /*
+ * Container in DataBoxEdge Resource
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* Current status of the container.
*/
@@ -45,6 +52,15 @@ public class ContainerInner extends ArmBaseModel {
@JsonProperty(value = "properties.createdDateTime", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime createdDateTime;
+ /**
+ * Get the systemData property: Container in DataBoxEdge Resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the containerStatus property: Current status of the container.
*
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..d4c1045c90881
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DCAccessCodeInner.java
@@ -0,0 +1,52 @@
+// 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.annotation.JsonFlatten;
+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. */
+@JsonFlatten
+@Fluent
+public class DCAccessCodeInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DCAccessCodeInner.class);
+
+ /*
+ * DCAccess Code for the Self Managed shipment.
+ */
+ @JsonProperty(value = "properties.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 DCAccessCodeInner object itself.
+ */
+ public DCAccessCodeInner 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..e44ab7acc583e 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
@@ -8,8 +8,12 @@
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.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
/** The extended Info of the Data Box Edge/Gateway device. */
@JsonFlatten
@@ -36,6 +40,44 @@ public class DataBoxEdgeDeviceExtendedInfoInner extends ArmBaseModel {
@JsonProperty(value = "properties.resourceKey", access = JsonProperty.Access.WRITE_ONLY)
private String resourceKey;
+ /*
+ * The Key Vault ARM Id for client secrets
+ */
+ @JsonProperty(value = "properties.clientSecretStoreId")
+ private String clientSecretStoreId;
+
+ /*
+ * The url to access the Client Key Vault
+ */
+ @JsonProperty(value = "properties.clientSecretStoreUrl")
+ private String clientSecretStoreUrl;
+
+ /*
+ * The name of Channel Integrity Key stored in the Client Key Vault
+ */
+ @JsonProperty(value = "properties.channelIntegrityKeyName")
+ private String channelIntegrityKeyName;
+
+ /*
+ * The version of Channel Integrity Key stored in the Client Key Vault
+ */
+ @JsonProperty(value = "properties.channelIntegrityKeyVersion")
+ private String channelIntegrityKeyVersion;
+
+ /*
+ * Key vault sync status
+ */
+ @JsonProperty(value = "properties.keyVaultSyncStatus")
+ private KeyVaultSyncStatus keyVaultSyncStatus;
+
+ /*
+ * Device secrets, will be returned only with ODataFilter
+ * $expand=deviceSecrets
+ */
+ @JsonProperty(value = "properties.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.
*
@@ -87,6 +129,115 @@ 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 DataBoxEdgeDeviceExtendedInfoInner object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoInner 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 DataBoxEdgeDeviceExtendedInfoInner object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoInner 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 DataBoxEdgeDeviceExtendedInfoInner object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoInner 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 DataBoxEdgeDeviceExtendedInfoInner object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoInner 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 DataBoxEdgeDeviceExtendedInfoInner object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoInner 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.
*
@@ -95,5 +246,15 @@ public String resourceKey() {
@Override
public void validate() {
super.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..e803fb87bdb23 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
@@ -6,13 +6,20 @@
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;
@@ -38,6 +45,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;
/*
@@ -52,6 +60,30 @@ public class DataBoxEdgeDeviceInner extends ArmBaseModel {
@JsonProperty(value = "etag")
private String etag;
+ /*
+ * Msi identity of the resource
+ */
+ @JsonProperty(value = "identity")
+ private ResourceIdentity identity;
+
+ /*
+ * The kind of the device.
+ */
+ @JsonProperty(value = "kind")
+ private DataBoxEdgeDeviceKind kind;
+
+ /*
+ * DataBoxEdge Resource
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * DataBoxEdge Device Properties
+ */
+ @JsonProperty(value = "properties.systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemDataPropertiesSystemData;
+
/*
* The status of the Data Box Edge/Gateway device.
*/
@@ -67,13 +99,13 @@ public class DataBoxEdgeDeviceInner extends ArmBaseModel {
/*
* The Description of the Data Box Edge/Gateway device.
*/
- @JsonProperty(value = "properties.description")
+ @JsonProperty(value = "properties.description", access = JsonProperty.Access.WRITE_ONLY)
private String description;
/*
* The description of the Data Box Edge/Gateway device model.
*/
- @JsonProperty(value = "properties.modelDescription")
+ @JsonProperty(value = "properties.modelDescription", access = JsonProperty.Access.WRITE_ONLY)
private String modelDescription;
/*
@@ -85,7 +117,7 @@ public class DataBoxEdgeDeviceInner extends ArmBaseModel {
/*
* The Data Box Edge/Gateway device name.
*/
- @JsonProperty(value = "properties.friendlyName")
+ @JsonProperty(value = "properties.friendlyName", access = JsonProperty.Access.WRITE_ONLY)
private String friendlyName;
/*
@@ -136,6 +168,24 @@ public class DataBoxEdgeDeviceInner extends ArmBaseModel {
@JsonProperty(value = "properties.nodeCount", access = JsonProperty.Access.WRITE_ONLY)
private Integer nodeCount;
+ /*
+ * The details of the move operation on this resource.
+ */
+ @JsonProperty(value = "properties.resourceMoveDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private ResourceMoveDetails resourceMoveDetails;
+
+ /*
+ * The details of Edge Profile for this resource
+ */
+ @JsonProperty(value = "properties.edgeProfile", access = JsonProperty.Access.WRITE_ONLY)
+ private EdgeProfile edgeProfile;
+
+ /*
+ * The details of data-residency related properties for this resource
+ */
+ @JsonProperty(value = "properties.dataResidency")
+ private DataResidency dataResidency;
+
/**
* Get the location property: The location of the device. This is a supported and registered Azure geographical
* region (for example, West US, East US, or Southeast Asia). The geographical region of a device cannot be changed
@@ -222,6 +272,64 @@ 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 systemDataPropertiesSystemData property: DataBoxEdge Device Properties.
+ *
+ * @return the systemDataPropertiesSystemData value.
+ */
+ public SystemData systemDataPropertiesSystemData() {
+ return this.systemDataPropertiesSystemData;
+ }
+
/**
* Get the dataBoxEdgeDeviceStatus property: The status of the Data Box Edge/Gateway device.
*
@@ -260,17 +368,6 @@ 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;
- }
-
/**
* Get the modelDescription property: The description of the Data Box Edge/Gateway device model.
*
@@ -280,17 +377,6 @@ 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;
- }
-
/**
* Get the deviceType property: The type of the Data Box Edge/Gateway device.
*
@@ -309,17 +395,6 @@ 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;
- }
-
/**
* Get the culture property: The Data Box Edge/Gateway device culture.
*
@@ -392,6 +467,44 @@ 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 DataBoxEdgeDeviceInner object itself.
+ */
+ public DataBoxEdgeDeviceInner withDataResidency(DataResidency dataResidency) {
+ this.dataResidency = dataResidency;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -408,5 +521,17 @@ public void validate() {
if (sku() != null) {
sku().validate();
}
+ if (identity() != null) {
+ identity().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/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..f69b766643e6e
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DiagnosticProactiveLogCollectionSettingsInner.java
@@ -0,0 +1,80 @@
+// 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.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.ProactiveDiagnosticsConsent;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The diagnostic proactive log collection settings of a device. */
+@JsonFlatten
+@Fluent
+public 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;
+
+ /*
+ * Proactive diagnostic collection consent flag
+ */
+ @JsonProperty(value = "properties.userConsent", required = true)
+ private ProactiveDiagnosticsConsent userConsent;
+
+ /**
+ * Get the systemData property: DiagnosticProactiveLogCollectionSettings.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * 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 DiagnosticProactiveLogCollectionSettingsInner object itself.
+ */
+ public DiagnosticProactiveLogCollectionSettingsInner withUserConsent(ProactiveDiagnosticsConsent userConsent) {
+ this.userConsent = userConsent;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (userConsent() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property userConsent in model"
+ + " DiagnosticProactiveLogCollectionSettingsInner"));
+ }
+ }
+}
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..0cf6dcb034dc5
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DiagnosticRemoteSupportSettingsInner.java
@@ -0,0 +1,77 @@
+// 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.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.RemoteSupportSettings;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The remote support settings of a device. */
+@JsonFlatten
+@Fluent
+public 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;
+
+ /*
+ * Remote support settings list according to the RemoteApplicationType
+ */
+ @JsonProperty(value = "properties.remoteSupportSettingsList")
+ private List remoteSupportSettingsList;
+
+ /**
+ * Get the systemData property: DiagnosticRemoteSupportSettings.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * 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 DiagnosticRemoteSupportSettingsInner object itself.
+ */
+ public DiagnosticRemoteSupportSettingsInner withRemoteSupportSettingsList(
+ List remoteSupportSettingsList) {
+ this.remoteSupportSettingsList = remoteSupportSettingsList;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.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/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/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..8d71ec14c83a0
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/MonitoringMetricConfigurationInner.java
@@ -0,0 +1,81 @@
+// 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.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.MetricConfiguration;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The metric setting details for the role. */
+@JsonFlatten
+@Fluent
+public 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 metrics configuration details
+ */
+ @JsonProperty(value = "properties.metricConfigurations", required = true)
+ private List metricConfigurations;
+
+ /**
+ * Get the systemData property: MonitoringConfiguration on ASE device.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * 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 MonitoringMetricConfigurationInner object itself.
+ */
+ public MonitoringMetricConfigurationInner withMetricConfigurations(List metricConfigurations) {
+ this.metricConfigurations = metricConfigurations;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (metricConfigurations() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property metricConfigurations in model MonitoringMetricConfigurationInner"));
+ } 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..849977af67197 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
@@ -6,6 +6,7 @@
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;
@@ -19,12 +20,27 @@
public class NetworkSettingsInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(NetworkSettingsInner.class);
+ /*
+ * NetworkSettings on ASE device
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* The network adapter list on the device.
*/
@JsonProperty(value = "properties.networkAdapters", access = JsonProperty.Access.WRITE_ONLY)
private List networkAdapters;
+ /**
+ * Get the systemData property: NetworkSettings on ASE device.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the networkAdapters property: The network adapter list on the device.
*
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..18cac2fdbc306 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
@@ -24,6 +24,12 @@ public class OperationInner {
@JsonProperty(value = "name")
private String name;
+ /*
+ * Is data action.
+ */
+ @JsonProperty(value = "isDataAction")
+ private Boolean isDataAction;
+
/*
* Properties displayed for the operation.
*/
@@ -62,6 +68,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.
*
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..872835b19bdad 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
@@ -6,11 +6,13 @@
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;
@@ -22,6 +24,12 @@
public class OrderInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(OrderInner.class);
+ /*
+ * Order configured on ASE resource
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* The contact details.
*/
@@ -37,7 +45,7 @@ public class OrderInner extends ArmBaseModel {
/*
* Current status of the order.
*/
- @JsonProperty(value = "properties.currentStatus")
+ @JsonProperty(value = "properties.currentStatus", access = JsonProperty.Access.WRITE_ONLY)
private OrderStatus currentStatus;
/*
@@ -66,6 +74,21 @@ public class OrderInner extends ArmBaseModel {
@JsonProperty(value = "properties.returnTrackingInfo", access = JsonProperty.Access.WRITE_ONLY)
private List returnTrackingInfo;
+ /*
+ * ShipmentType of the order
+ */
+ @JsonProperty(value = "properties.shipmentType")
+ private ShipmentType shipmentType;
+
+ /**
+ * Get the systemData property: Order configured on ASE resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the contactInformation property: The contact details.
*
@@ -115,17 +138,6 @@ 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;
- }
-
/**
* Get the orderHistory property: List of status changes in the order.
*
@@ -164,6 +176,26 @@ 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 OrderInner object itself.
+ */
+ public OrderInner withShipmentType(ShipmentType shipmentType) {
+ this.shipmentType = shipmentType;
+ return this;
+ }
+
/**
* Validates the instance.
*
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/ShareInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ShareInner.java
index 280d6bc637031..2f60f12b46cfc 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
@@ -6,6 +6,7 @@
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;
@@ -27,6 +28,12 @@
public class ShareInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(ShareInner.class);
+ /*
+ * Share on ASE device
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* Description for the share.
*/
@@ -89,6 +96,15 @@ public class ShareInner extends ArmBaseModel {
@JsonProperty(value = "properties.dataPolicy")
private DataPolicy dataPolicy;
+ /**
+ * Get the systemData property: Share on ASE device.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the description property: Description for the share.
*
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..f23683cc2fbf0 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
@@ -6,6 +6,7 @@
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;
@@ -20,6 +21,12 @@
public class StorageAccountCredentialInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(StorageAccountCredentialInner.class);
+ /*
+ * StorageAccountCredential object
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* Alias for the storage account.
*/
@@ -69,6 +76,15 @@ public class StorageAccountCredentialInner extends ArmBaseModel {
@JsonProperty(value = "properties.storageAccountId")
private String storageAccountId;
+ /**
+ * Get the systemData property: StorageAccountCredential object.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the alias property: Alias for the storage account.
*
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..5ff1de14452a1 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
@@ -6,6 +6,7 @@
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;
@@ -19,6 +20,12 @@
public class StorageAccountInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(StorageAccountInner.class);
+ /*
+ * StorageAccount object on ASE device
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* Description for the storage Account.
*/
@@ -34,7 +41,7 @@ public class StorageAccountInner extends ArmBaseModel {
/*
* Data policy of the storage Account.
*/
- @JsonProperty(value = "properties.dataPolicy")
+ @JsonProperty(value = "properties.dataPolicy", required = true)
private DataPolicy dataPolicy;
/*
@@ -56,6 +63,15 @@ public class StorageAccountInner extends ArmBaseModel {
@JsonProperty(value = "properties.containerCount", access = JsonProperty.Access.WRITE_ONLY)
private Integer containerCount;
+ /**
+ * Get the systemData property: StorageAccount object on ASE device.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the description property: Description for the storage Account.
*
@@ -163,5 +179,10 @@ public Integer containerCount() {
@Override
public void validate() {
super.validate();
+ if (dataPolicy() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property dataPolicy in model StorageAccountInner"));
+ }
}
}
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..0ca97685e3328 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
@@ -6,9 +6,12 @@
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;
@@ -21,6 +24,12 @@
public class UpdateSummaryInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateSummaryInner.class);
+ /*
+ * UpdateSummary Result
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* The current version of the device in format: 1.2.17312.13.",
*/
@@ -46,6 +55,12 @@ public class UpdateSummaryInner extends ArmBaseModel {
@JsonProperty(value = "properties.lastCompletedScanJobDateTime")
private OffsetDateTime lastCompletedScanJobDateTime;
+ /*
+ * Time when the last scan job is successfully completed.
+ */
+ @JsonProperty(value = "properties.lastSuccessfulScanJobTime")
+ private OffsetDateTime lastSuccessfulScanJobTime;
+
/*
* The time when the last Download job was completed
* (success/cancelled/failed) on the appliance.
@@ -53,6 +68,25 @@ public class UpdateSummaryInner extends ArmBaseModel {
@JsonProperty(value = "properties.lastCompletedDownloadJobDateTime", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime lastCompletedDownloadJobDateTime;
+ /*
+ * JobId of the last ran download job.(Can be success/cancelled/failed)
+ */
+ @JsonProperty(value = "properties.lastCompletedDownloadJobId", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastCompletedDownloadJobId;
+
+ /*
+ * JobStatus of the last ran download job.
+ */
+ @JsonProperty(value = "properties.lastDownloadJobStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private JobStatus lastDownloadJobStatus;
+
+ /*
+ * The time when the Last Install job was completed successfully on the
+ * appliance
+ */
+ @JsonProperty(value = "properties.lastSuccessfulInstallJobDateTime")
+ private OffsetDateTime lastSuccessfulInstallJobDateTime;
+
/*
* The time when the last Install job was completed
* (success/cancelled/failed) on the appliance.
@@ -60,6 +94,18 @@ public class UpdateSummaryInner extends ArmBaseModel {
@JsonProperty(value = "properties.lastCompletedInstallJobDateTime", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime lastCompletedInstallJobDateTime;
+ /*
+ * JobId of the last ran install job.(Can be success/cancelled/failed)
+ */
+ @JsonProperty(value = "properties.lastCompletedInstallJobId", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastCompletedInstallJobId;
+
+ /*
+ * JobStatus of the last ran install job.
+ */
+ @JsonProperty(value = "properties.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.
@@ -122,12 +168,33 @@ public class UpdateSummaryInner extends ArmBaseModel {
@JsonProperty(value = "properties.updateTitles", access = JsonProperty.Access.WRITE_ONLY)
private List updateTitles;
+ /*
+ * The list of updates available for install.
+ */
+ @JsonProperty(value = "properties.updates", access = JsonProperty.Access.WRITE_ONLY)
+ private List updates;
+
/*
* The total size of updates available for download in bytes.
*/
@JsonProperty(value = "properties.totalUpdateSizeInBytes", access = JsonProperty.Access.WRITE_ONLY)
private Double totalUpdateSizeInBytes;
+ /*
+ * The total time in Minutes
+ */
+ @JsonProperty(value = "properties.totalTimeInMinutes", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer totalTimeInMinutes;
+
+ /**
+ * Get the systemData property: UpdateSummary Result.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the deviceVersionNumber property: The current version of the device in format: 1.2.17312.13.",.
*
@@ -210,6 +277,26 @@ public UpdateSummaryInner withLastCompletedScanJobDateTime(OffsetDateTime lastCo
return this;
}
+ /**
+ * Get the lastSuccessfulScanJobTime property: Time when the last scan job is successfully completed.
+ *
+ * @return the lastSuccessfulScanJobTime value.
+ */
+ public OffsetDateTime lastSuccessfulScanJobTime() {
+ return this.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) {
+ this.lastSuccessfulScanJobTime = lastSuccessfulScanJobTime;
+ return this;
+ }
+
/**
* Get the lastCompletedDownloadJobDateTime property: The time when the last Download job was completed
* (success/cancelled/failed) on the appliance.
@@ -220,6 +307,47 @@ public OffsetDateTime lastCompletedDownloadJobDateTime() {
return this.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.lastCompletedDownloadJobId;
+ }
+
+ /**
+ * Get the lastDownloadJobStatus property: JobStatus of the last ran download job.
+ *
+ * @return the lastDownloadJobStatus value.
+ */
+ public JobStatus lastDownloadJobStatus() {
+ return this.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.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) {
+ this.lastSuccessfulInstallJobDateTime = lastSuccessfulInstallJobDateTime;
+ return this;
+ }
+
/**
* Get the lastCompletedInstallJobDateTime property: The time when the last Install job was completed
* (success/cancelled/failed) on the appliance.
@@ -230,6 +358,24 @@ public OffsetDateTime lastCompletedInstallJobDateTime() {
return this.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.lastCompletedInstallJobId;
+ }
+
+ /**
+ * Get the lastInstallJobStatus property: JobStatus of the last ran install job.
+ *
+ * @return the lastInstallJobStatus value.
+ */
+ public JobStatus lastInstallJobStatus() {
+ return this.lastInstallJobStatus;
+ }
+
/**
* Get the totalNumberOfUpdatesAvailable property: The number of updates available for the current device version as
* per the last device scan.
@@ -324,6 +470,15 @@ public List updateTitles() {
return this.updateTitles;
}
+ /**
+ * Get the updates property: The list of updates available for install.
+ *
+ * @return the updates value.
+ */
+ public List updates() {
+ return this.updates;
+ }
+
/**
* Get the totalUpdateSizeInBytes property: The total size of updates available for download in bytes.
*
@@ -333,6 +488,15 @@ public Double totalUpdateSizeInBytes() {
return this.totalUpdateSizeInBytes;
}
+ /**
+ * Get the totalTimeInMinutes property: The total time in Minutes.
+ *
+ * @return the totalTimeInMinutes value.
+ */
+ public Integer totalTimeInMinutes() {
+ return this.totalTimeInMinutes;
+ }
+
/**
* Validates the instance.
*
@@ -341,5 +505,8 @@ public Double totalUpdateSizeInBytes() {
@Override
public void validate() {
super.validate();
+ if (updates() != null) {
+ updates().forEach(e -> e.validate());
+ }
}
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/UserInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/UserInner.java
index 13a4f25dbe378..282b22e817aea 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/UserInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/UserInner.java
@@ -6,6 +6,7 @@
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.AsymmetricEncryptedSecret;
@@ -21,6 +22,12 @@
public class UserInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(UserInner.class);
+ /*
+ * User in DataBoxEdge Resource
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* The password details.
*/
@@ -31,7 +38,7 @@ public class UserInner extends ArmBaseModel {
* List of shares that the user has rights on. This field should not be
* specified during user creation.
*/
- @JsonProperty(value = "properties.shareAccessRights")
+ @JsonProperty(value = "properties.shareAccessRights", access = JsonProperty.Access.WRITE_ONLY)
private List shareAccessRights;
/*
@@ -40,6 +47,15 @@ public class UserInner extends ArmBaseModel {
@JsonProperty(value = "properties.userType", required = true)
private UserType userType;
+ /**
+ * Get the systemData property: User in DataBoxEdge Resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the encryptedPassword property: The password details.
*
@@ -70,18 +86,6 @@ public List shareAccessRights() {
return this.shareAccessRights;
}
- /**
- * Set the shareAccessRights property: List of shares that the user has rights on. This field should not be
- * specified during user creation.
- *
- * @param shareAccessRights the shareAccessRights value to set.
- * @return the UserInner object itself.
- */
- public UserInner withShareAccessRights(List shareAccessRights) {
- this.shareAccessRights = shareAccessRights;
- return this;
- }
-
/**
* Get the userType property: Type of the user.
*
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/AddonImpl.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/AddonImpl.java
new file mode 100644
index 0000000000000..afa11163d9eea
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/AddonImpl.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.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.databoxedge.fluent.models.AddonInner;
+import com.azure.resourcemanager.databoxedge.models.Addon;
+
+public final class AddonImpl implements Addon {
+ private AddonInner innerObject;
+
+ private final com.azure.resourcemanager.databoxedge.DataBoxEdgeManager serviceManager;
+
+ AddonImpl(AddonInner innerObject, com.azure.resourcemanager.databoxedge.DataBoxEdgeManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public AddonInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/AddonsClientImpl.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/AddonsClientImpl.java
new file mode 100644
index 0000000000000..a0bf68aa5dc4b
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/AddonsClientImpl.java
@@ -0,0 +1,1183 @@
+// 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.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.databoxedge.fluent.AddonsClient;
+import com.azure.resourcemanager.databoxedge.fluent.models.AddonInner;
+import com.azure.resourcemanager.databoxedge.models.AddonList;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in AddonsClient. */
+public final class AddonsClientImpl implements AddonsClient {
+ private final ClientLogger logger = new ClientLogger(AddonsClientImpl.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final AddonsService service;
+
+ /** The service client containing this operation class. */
+ private final DataBoxEdgeManagementClientImpl client;
+
+ /**
+ * Initializes an instance of AddonsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ AddonsClientImpl(DataBoxEdgeManagementClientImpl client) {
+ this.service = RestProxy.create(AddonsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for DataBoxEdgeManagementClientAddons to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "DataBoxEdgeManagemen")
+ private interface AddonsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge"
+ + "/dataBoxEdgeDevices/{deviceName}/roles/{roleName}/addons")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByRole(
+ @HostParam("$host") String endpoint,
+ @PathParam("deviceName") String deviceName,
+ @PathParam("roleName") String roleName,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge"
+ + "/dataBoxEdgeDevices/{deviceName}/roles/{roleName}/addons/{addonName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("deviceName") String deviceName,
+ @PathParam("roleName") String roleName,
+ @PathParam("addonName") String addonName,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge"
+ + "/dataBoxEdgeDevices/{deviceName}/roles/{roleName}/addons/{addonName}")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("deviceName") String deviceName,
+ @PathParam("roleName") String roleName,
+ @PathParam("addonName") String addonName,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") AddonInner addon,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge"
+ + "/dataBoxEdgeDevices/{deviceName}/roles/{roleName}/addons/{addonName}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("deviceName") String deviceName,
+ @PathParam("roleName") String roleName,
+ @PathParam("addonName") String addonName,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByRoleNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * 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 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.SINGLE)
+ private Mono> listByRoleSinglePageAsync(
+ String deviceName, String roleName, String resourceGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (roleName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter roleName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listByRole(
+ this.client.getEndpoint(),
+ deviceName,
+ roleName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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.SINGLE)
+ private Mono> listByRoleSinglePageAsync(
+ String deviceName, String roleName, String resourceGroupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (roleName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter roleName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByRole(
+ this.client.getEndpoint(),
+ deviceName,
+ roleName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * 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 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)
+ private PagedFlux listByRoleAsync(String deviceName, String roleName, String resourceGroupName) {
+ return new PagedFlux<>(
+ () -> listByRoleSinglePageAsync(deviceName, roleName, resourceGroupName),
+ nextLink -> listByRoleNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * 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 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)
+ private PagedFlux listByRoleAsync(
+ String deviceName, String roleName, String resourceGroupName, Context context) {
+ return new PagedFlux<>(
+ () -> listByRoleSinglePageAsync(deviceName, roleName, resourceGroupName, context),
+ nextLink -> listByRoleNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * 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 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)
+ public PagedIterable listByRole(String deviceName, String roleName, String resourceGroupName) {
+ return new PagedIterable<>(listByRoleAsync(deviceName, roleName, 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 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)
+ public PagedIterable listByRole(
+ String deviceName, String roleName, String resourceGroupName, Context context) {
+ return new PagedIterable<>(listByRoleAsync(deviceName, roleName, resourceGroupName, 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 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)
+ private Mono> getWithResponseAsync(
+ String deviceName, String roleName, String addonName, String resourceGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (roleName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter roleName is required and cannot be null."));
+ }
+ if (addonName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter addonName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ deviceName,
+ roleName,
+ addonName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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)
+ private Mono> getWithResponseAsync(
+ String deviceName, String roleName, String addonName, String resourceGroupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (roleName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter roleName is required and cannot be null."));
+ }
+ if (addonName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter addonName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ deviceName,
+ roleName,
+ addonName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ 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 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)
+ private Mono getAsync(String deviceName, String roleName, String addonName, String resourceGroupName) {
+ return getWithResponseAsync(deviceName, roleName, addonName, resourceGroupName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * 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 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)
+ public AddonInner get(String deviceName, String roleName, String addonName, String resourceGroupName) {
+ return getAsync(deviceName, roleName, addonName, resourceGroupName).block();
+ }
+
+ /**
+ * 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 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)
+ public Response getWithResponse(
+ String deviceName, String roleName, String addonName, String resourceGroupName, Context context) {
+ return getWithResponseAsync(deviceName, roleName, addonName, resourceGroupName, context).block();
+ }
+
+ /**
+ * 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 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)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String deviceName, String roleName, String addonName, String resourceGroupName, AddonInner addon) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (roleName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter roleName is required and cannot be null."));
+ }
+ if (addonName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter addonName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (addon == null) {
+ return Mono.error(new IllegalArgumentException("Parameter addon is required and cannot be null."));
+ } else {
+ addon.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ deviceName,
+ roleName,
+ addonName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ addon,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String deviceName,
+ String roleName,
+ String addonName,
+ String resourceGroupName,
+ AddonInner addon,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (roleName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter roleName is required and cannot be null."));
+ }
+ if (addonName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter addonName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (addon == null) {
+ return Mono.error(new IllegalArgumentException("Parameter addon is required and cannot be null."));
+ } else {
+ addon.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ deviceName,
+ roleName,
+ addonName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ addon,
+ accept,
+ 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 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)
+ private PollerFlux, AddonInner> beginCreateOrUpdateAsync(
+ String deviceName, String roleName, String addonName, String resourceGroupName, AddonInner addon) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(deviceName, roleName, addonName, resourceGroupName, addon);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), AddonInner.class, AddonInner.class, Context.NONE);
+ }
+
+ /**
+ * 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 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)
+ private PollerFlux, AddonInner> beginCreateOrUpdateAsync(
+ String deviceName,
+ String roleName,
+ String addonName,
+ String resourceGroupName,
+ AddonInner addon,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(deviceName, roleName, addonName, resourceGroupName, addon, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), AddonInner.class, AddonInner.class, 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 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)
+ public SyncPoller, AddonInner> beginCreateOrUpdate(
+ String deviceName, String roleName, String addonName, String resourceGroupName, AddonInner addon) {
+ return beginCreateOrUpdateAsync(deviceName, roleName, addonName, resourceGroupName, addon).getSyncPoller();
+ }
+
+ /**
+ * 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 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)
+ public SyncPoller, AddonInner> beginCreateOrUpdate(
+ String deviceName,
+ String roleName,
+ String addonName,
+ String resourceGroupName,
+ AddonInner addon,
+ Context context) {
+ return beginCreateOrUpdateAsync(deviceName, roleName, addonName, resourceGroupName, addon, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * 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 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)
+ private Mono createOrUpdateAsync(
+ String deviceName, String roleName, String addonName, String resourceGroupName, AddonInner addon) {
+ return beginCreateOrUpdateAsync(deviceName, roleName, addonName, resourceGroupName, addon)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * 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 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)
+ private Mono createOrUpdateAsync(
+ String deviceName,
+ String roleName,
+ String addonName,
+ String resourceGroupName,
+ AddonInner addon,
+ Context context) {
+ return beginCreateOrUpdateAsync(deviceName, roleName, addonName, resourceGroupName, addon, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * 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 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)
+ public AddonInner createOrUpdate(
+ String deviceName, String roleName, String addonName, String resourceGroupName, AddonInner addon) {
+ return createOrUpdateAsync(deviceName, roleName, addonName, resourceGroupName, addon).block();
+ }
+
+ /**
+ * 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 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)
+ public AddonInner createOrUpdate(
+ String deviceName,
+ String roleName,
+ String addonName,
+ String resourceGroupName,
+ AddonInner addon,
+ Context context) {
+ return createOrUpdateAsync(deviceName, roleName, addonName, resourceGroupName, addon, context).block();
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String deviceName, String roleName, String addonName, String resourceGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (roleName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter roleName is required and cannot be null."));
+ }
+ if (addonName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter addonName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ deviceName,
+ roleName,
+ addonName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String deviceName, String roleName, String addonName, String resourceGroupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (roleName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter roleName is required and cannot be null."));
+ }
+ if (addonName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter addonName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ deviceName,
+ roleName,
+ addonName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginDeleteAsync(
+ String deviceName, String roleName, String addonName, String resourceGroupName) {
+ Mono>> mono =
+ deleteWithResponseAsync(deviceName, roleName, addonName, resourceGroupName);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginDeleteAsync(
+ String deviceName, String roleName, String addonName, String resourceGroupName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ deleteWithResponseAsync(deviceName, roleName, addonName, resourceGroupName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginDelete(
+ String deviceName, String roleName, String addonName, String resourceGroupName) {
+ return beginDeleteAsync(deviceName, roleName, addonName, resourceGroupName).getSyncPoller();
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginDelete(
+ String deviceName, String roleName, String addonName, String resourceGroupName, Context context) {
+ return beginDeleteAsync(deviceName, roleName, addonName, resourceGroupName, context).getSyncPoller();
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String deviceName, String roleName, String addonName, String resourceGroupName) {
+ return beginDeleteAsync(deviceName, roleName, addonName, resourceGroupName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(
+ String deviceName, String roleName, String addonName, String resourceGroupName, Context context) {
+ return beginDeleteAsync(deviceName, roleName, addonName, resourceGroupName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * 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 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)
+ public void delete(String deviceName, String roleName, String addonName, String resourceGroupName) {
+ deleteAsync(deviceName, roleName, addonName, resourceGroupName).block();
+ }
+
+ /**
+ * 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 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)
+ public void delete(
+ String deviceName, String roleName, String addonName, String resourceGroupName, Context context) {
+ deleteAsync(deviceName, roleName, addonName, resourceGroupName, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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.SINGLE)
+ private Mono> listByRoleNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByRoleNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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.SINGLE)
+ private Mono> listByRoleNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByRoleNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/AddonsImpl.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/AddonsImpl.java
new file mode 100644
index 0000000000000..706978d0d167e
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/AddonsImpl.java
@@ -0,0 +1,110 @@
+// 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.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.fluent.AddonsClient;
+import com.azure.resourcemanager.databoxedge.fluent.models.AddonInner;
+import com.azure.resourcemanager.databoxedge.models.Addon;
+import com.azure.resourcemanager.databoxedge.models.Addons;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+
+public final class AddonsImpl implements Addons {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AddonsImpl.class);
+
+ private final AddonsClient innerClient;
+
+ private final com.azure.resourcemanager.databoxedge.DataBoxEdgeManager serviceManager;
+
+ public AddonsImpl(
+ AddonsClient innerClient, com.azure.resourcemanager.databoxedge.DataBoxEdgeManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable listByRole(String deviceName, String roleName, String resourceGroupName) {
+ PagedIterable inner = this.serviceClient().listByRole(deviceName, roleName, resourceGroupName);
+ return Utils.mapPage(inner, inner1 -> new AddonImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByRole(
+ String deviceName, String roleName, String resourceGroupName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listByRole(deviceName, roleName, resourceGroupName, context);
+ return Utils.mapPage(inner, inner1 -> new AddonImpl(inner1, this.manager()));
+ }
+
+ public Addon get(String deviceName, String roleName, String addonName, String resourceGroupName) {
+ AddonInner inner = this.serviceClient().get(deviceName, roleName, addonName, resourceGroupName);
+ if (inner != null) {
+ return new AddonImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getWithResponse(
+ String deviceName, String roleName, String addonName, String resourceGroupName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(deviceName, roleName, addonName, resourceGroupName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new AddonImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public Addon createOrUpdate(
+ String deviceName, String roleName, String addonName, String resourceGroupName, AddonInner addon) {
+ AddonInner inner =
+ this.serviceClient().createOrUpdate(deviceName, roleName, addonName, resourceGroupName, addon);
+ if (inner != null) {
+ return new AddonImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Addon createOrUpdate(
+ String deviceName,
+ String roleName,
+ String addonName,
+ String resourceGroupName,
+ AddonInner addon,
+ Context context) {
+ AddonInner inner =
+ this.serviceClient().createOrUpdate(deviceName, roleName, addonName, resourceGroupName, addon, context);
+ if (inner != null) {
+ return new AddonImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String deviceName, String roleName, String addonName, String resourceGroupName) {
+ this.serviceClient().delete(deviceName, roleName, addonName, resourceGroupName);
+ }
+
+ public void delete(
+ String deviceName, String roleName, String addonName, String resourceGroupName, Context context) {
+ this.serviceClient().delete(deviceName, roleName, addonName, resourceGroupName, context);
+ }
+
+ private AddonsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/AlertImpl.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/AlertImpl.java
index a2a300d707507..5a72fc29ea838 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/AlertImpl.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/AlertImpl.java
@@ -4,6 +4,7 @@
package com.azure.resourcemanager.databoxedge.implementation;
+import com.azure.core.management.SystemData;
import com.azure.resourcemanager.databoxedge.fluent.models.AlertInner;
import com.azure.resourcemanager.databoxedge.models.Alert;
import com.azure.resourcemanager.databoxedge.models.AlertErrorDetails;
@@ -34,6 +35,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public String title() {
return this.innerModel().title();
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/SkusClientImpl.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/AvailableSkusClientImpl.java
similarity index 54%
rename from sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/SkusClientImpl.java
rename to sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/AvailableSkusClientImpl.java
index fab5218a57090..0768b78f8a0ec 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/SkusClientImpl.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/AvailableSkusClientImpl.java
@@ -26,62 +26,70 @@
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.databoxedge.fluent.SkusClient;
-import com.azure.resourcemanager.databoxedge.fluent.models.ResourceTypeSkuInner;
-import com.azure.resourcemanager.databoxedge.models.SkuInformationList;
+import com.azure.resourcemanager.databoxedge.fluent.AvailableSkusClient;
+import com.azure.resourcemanager.databoxedge.fluent.models.DataBoxEdgeSkuInner;
+import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeSkuList;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in SkusClient. */
-public final class SkusClientImpl implements SkusClient {
- private final ClientLogger logger = new ClientLogger(SkusClientImpl.class);
+/** An instance of this class provides access to all the operations defined in AvailableSkusClient. */
+public final class AvailableSkusClientImpl implements AvailableSkusClient {
+ private final ClientLogger logger = new ClientLogger(AvailableSkusClientImpl.class);
/** The proxy service used to perform REST calls. */
- private final SkusService service;
+ private final AvailableSkusService service;
/** The service client containing this operation class. */
private final DataBoxEdgeManagementClientImpl client;
/**
- * Initializes an instance of SkusClientImpl.
+ * Initializes an instance of AvailableSkusClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- SkusClientImpl(DataBoxEdgeManagementClientImpl client) {
- this.service = RestProxy.create(SkusService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ AvailableSkusClientImpl(DataBoxEdgeManagementClientImpl client) {
+ this.service =
+ RestProxy.create(AvailableSkusService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for DataBoxEdgeManagementClientSkus to be used by the proxy service to
- * perform REST calls.
+ * The interface defining all the services for DataBoxEdgeManagementClientAvailableSkus to be used by the proxy
+ * service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "DataBoxEdgeManagemen")
- private interface SkusService {
+ private interface AvailableSkusService {
@Headers({"Content-Type: application/json"})
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.DataBoxEdge/skus")
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.DataBoxEdge/availableSkus")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(
+ Mono> list(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@QueryParam("api-version") String apiVersion,
- @QueryParam("$filter") String filter,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
@HeaderParam("Accept") String accept,
Context context);
}
/**
- * 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.SINGLE)
- private Mono> listSinglePageAsync(String filter) {
+ private Mono> listSinglePageAsync() {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -103,20 +111,23 @@ private Mono> listSinglePageAsync(String fil
this.client.getEndpoint(),
this.client.getSubscriptionId(),
this.client.getApiVersion(),
- filter,
accept,
context))
- .>map(
+ .>map(
res ->
new PagedResponseBase<>(
- res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null))
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * 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 ManagementException thrown if the request is rejected by server.
@@ -124,7 +135,7 @@ private Mono> listSinglePageAsync(String fil
* @return list of SKU Information objects.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String filter, Context context) {
+ private Mono> listSinglePageAsync(Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -144,46 +155,61 @@ private Mono> listSinglePageAsync(String fil
this.client.getEndpoint(),
this.client.getSubscriptionId(),
this.client.getApiVersion(),
- filter,
accept,
context)
.map(
res ->
new PagedResponseBase<>(
- res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null));
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List all the available Skus and information related to them.
+ *
+ * @throws 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)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink));
}
/**
- * 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 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)
- private PagedFlux listAsync(String filter) {
- return new PagedFlux<>(() -> listSinglePageAsync(filter));
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context));
}
/**
- * List all the available Skus in the region and information related to them.
+ * List all the available Skus and information related to them.
*
* @throws 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)
- private PagedFlux listAsync() {
- final String filter = null;
- return new PagedFlux<>(() -> listSinglePageAsync(filter));
+ public PagedIterable list() {
+ return new PagedIterable<>(listAsync());
}
/**
- * 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 ManagementException thrown if the request is rejected by server.
@@ -191,35 +217,78 @@ private PagedFlux listAsync() {
* @return list of SKU Information objects.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String filter, Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(filter, context));
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(listAsync(context));
}
/**
- * List all the available Skus in the region and information related to them.
+ * Get the next page of items.
*
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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)
- public PagedIterable list() {
- final String filter = null;
- return new PagedIterable<>(listAsync(filter));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * List all the available Skus in the region and information related to them.
+ * Get the next page of items.
*
- * @param filter Specify $filter='location eq <location>' to filter on location.
+ * @param nextLink The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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)
- public PagedIterable list(String filter, Context context) {
- return new PagedIterable<>(listAsync(filter, context));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
}
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/AvailableSkusImpl.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/AvailableSkusImpl.java
new file mode 100644
index 0000000000000..ab03b8a6468d9
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/AvailableSkusImpl.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.fluent.AvailableSkusClient;
+import com.azure.resourcemanager.databoxedge.fluent.models.DataBoxEdgeSkuInner;
+import com.azure.resourcemanager.databoxedge.models.AvailableSkus;
+import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeSku;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+
+public final class AvailableSkusImpl implements AvailableSkus {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AvailableSkusImpl.class);
+
+ private final AvailableSkusClient innerClient;
+
+ private final com.azure.resourcemanager.databoxedge.DataBoxEdgeManager serviceManager;
+
+ public AvailableSkusImpl(
+ AvailableSkusClient innerClient, com.azure.resourcemanager.databoxedge.DataBoxEdgeManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return Utils.mapPage(inner, inner1 -> new DataBoxEdgeSkuImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(Context context) {
+ PagedIterable inner = this.serviceClient().list(context);
+ return Utils.mapPage(inner, inner1 -> new DataBoxEdgeSkuImpl(inner1, this.manager()));
+ }
+
+ private AvailableSkusClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/BandwidthScheduleImpl.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/BandwidthScheduleImpl.java
index b59183a98d06f..3badd7891eb79 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/BandwidthScheduleImpl.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/BandwidthScheduleImpl.java
@@ -4,6 +4,7 @@
package com.azure.resourcemanager.databoxedge.implementation;
+import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.databoxedge.fluent.models.BandwidthScheduleInner;
import com.azure.resourcemanager.databoxedge.models.BandwidthSchedule;
@@ -29,6 +30,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public String start() {
return this.innerModel().start();
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/ContainerImpl.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/ContainerImpl.java
index 62a6d67316a57..fea24e0a39ede 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/ContainerImpl.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/ContainerImpl.java
@@ -4,6 +4,7 @@
package com.azure.resourcemanager.databoxedge.implementation;
+import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.databoxedge.fluent.models.ContainerInner;
import com.azure.resourcemanager.databoxedge.models.AzureContainerDataFormat;
@@ -29,6 +30,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public ContainerStatus containerStatus() {
return this.innerModel().containerStatus();
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DCAccessCodeImpl.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DCAccessCodeImpl.java
new file mode 100644
index 0000000000000..4f1fe48962974
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DCAccessCodeImpl.java
@@ -0,0 +1,32 @@
+// 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.implementation;
+
+import com.azure.resourcemanager.databoxedge.fluent.models.DCAccessCodeInner;
+import com.azure.resourcemanager.databoxedge.models.DCAccessCode;
+
+public final class DCAccessCodeImpl implements DCAccessCode {
+ private DCAccessCodeInner innerObject;
+
+ private final com.azure.resourcemanager.databoxedge.DataBoxEdgeManager serviceManager;
+
+ DCAccessCodeImpl(
+ DCAccessCodeInner innerObject, com.azure.resourcemanager.databoxedge.DataBoxEdgeManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String authCode() {
+ return this.innerModel().authCode();
+ }
+
+ public DCAccessCodeInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DataBoxEdgeDeviceExtendedInfoImpl.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DataBoxEdgeDeviceExtendedInfoImpl.java
index 9951f5372aee9..ec2c524a1993a 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DataBoxEdgeDeviceExtendedInfoImpl.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DataBoxEdgeDeviceExtendedInfoImpl.java
@@ -6,6 +6,10 @@
import com.azure.resourcemanager.databoxedge.fluent.models.DataBoxEdgeDeviceExtendedInfoInner;
import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeDeviceExtendedInfo;
+import com.azure.resourcemanager.databoxedge.models.KeyVaultSyncStatus;
+import com.azure.resourcemanager.databoxedge.models.Secret;
+import java.util.Collections;
+import java.util.Map;
public final class DataBoxEdgeDeviceExtendedInfoImpl implements DataBoxEdgeDeviceExtendedInfo {
private DataBoxEdgeDeviceExtendedInfoInner innerObject;
@@ -43,6 +47,35 @@ public String resourceKey() {
return this.innerModel().resourceKey();
}
+ public String clientSecretStoreId() {
+ return this.innerModel().clientSecretStoreId();
+ }
+
+ public String clientSecretStoreUrl() {
+ return this.innerModel().clientSecretStoreUrl();
+ }
+
+ public String channelIntegrityKeyName() {
+ return this.innerModel().channelIntegrityKeyName();
+ }
+
+ public String channelIntegrityKeyVersion() {
+ return this.innerModel().channelIntegrityKeyVersion();
+ }
+
+ public KeyVaultSyncStatus keyVaultSyncStatus() {
+ return this.innerModel().keyVaultSyncStatus();
+ }
+
+ public Map deviceSecrets() {
+ Map inner = this.innerModel().deviceSecrets();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
public DataBoxEdgeDeviceExtendedInfoInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DataBoxEdgeDeviceImpl.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DataBoxEdgeDeviceImpl.java
index 0788a103b05c3..13b3a2a04f0d2 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DataBoxEdgeDeviceImpl.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DataBoxEdgeDeviceImpl.java
@@ -6,13 +6,22 @@
import com.azure.core.http.rest.Response;
import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.databoxedge.fluent.models.DataBoxEdgeDeviceInner;
import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeDevice;
import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeDeviceExtendedInfo;
+import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeDeviceExtendedInfoPatch;
+import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeDeviceKind;
import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeDevicePatch;
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.EdgeProfilePatch;
+import com.azure.resourcemanager.databoxedge.models.GenerateCertResponse;
+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.azure.resourcemanager.databoxedge.models.UploadCertificateRequest;
@@ -60,6 +69,22 @@ public String etag() {
return this.innerModel().etag();
}
+ public ResourceIdentity identity() {
+ return this.innerModel().identity();
+ }
+
+ public DataBoxEdgeDeviceKind kind() {
+ return this.innerModel().kind();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public SystemData systemDataPropertiesSystemData() {
+ return this.innerModel().systemDataPropertiesSystemData();
+ }
+
public DataBoxEdgeDeviceStatus dataBoxEdgeDeviceStatus() {
return this.innerModel().dataBoxEdgeDeviceStatus();
}
@@ -121,6 +146,18 @@ public Integer nodeCount() {
return this.innerModel().nodeCount();
}
+ public ResourceMoveDetails resourceMoveDetails() {
+ return this.innerModel().resourceMoveDetails();
+ }
+
+ public EdgeProfile edgeProfile() {
+ return this.innerModel().edgeProfile();
+ }
+
+ public DataResidency dataResidency() {
+ return this.innerModel().dataResidency();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -153,7 +190,8 @@ public DataBoxEdgeDevice create() {
serviceManager
.serviceClient()
.getDevices()
- .createOrUpdate(deviceName, resourceGroupName, this.innerModel(), Context.NONE);
+ .createOrUpdateWithResponse(deviceName, resourceGroupName, this.innerModel(), Context.NONE)
+ .getValue();
return this;
}
@@ -162,7 +200,8 @@ public DataBoxEdgeDevice create(Context context) {
serviceManager
.serviceClient()
.getDevices()
- .createOrUpdate(deviceName, resourceGroupName, this.innerModel(), context);
+ .createOrUpdateWithResponse(deviceName, resourceGroupName, this.innerModel(), context)
+ .getValue();
return this;
}
@@ -233,6 +272,14 @@ public void downloadUpdates(Context context) {
serviceManager.devices().downloadUpdates(deviceName, resourceGroupName, context);
}
+ public GenerateCertResponse generateCertificate() {
+ return serviceManager.devices().generateCertificate(deviceName, resourceGroupName);
+ }
+
+ public Response generateCertificateWithResponse(Context context) {
+ return serviceManager.devices().generateCertificateWithResponse(deviceName, resourceGroupName, context);
+ }
+
public DataBoxEdgeDeviceExtendedInfo getExtendedInformation() {
return serviceManager.devices().getExtendedInformation(deviceName, resourceGroupName);
}
@@ -257,6 +304,17 @@ public void scanForUpdates(Context context) {
serviceManager.devices().scanForUpdates(deviceName, resourceGroupName, context);
}
+ public DataBoxEdgeDeviceExtendedInfo updateExtendedInformation(DataBoxEdgeDeviceExtendedInfoPatch parameters) {
+ return serviceManager.devices().updateExtendedInformation(deviceName, resourceGroupName, parameters);
+ }
+
+ public Response updateExtendedInformationWithResponse(
+ DataBoxEdgeDeviceExtendedInfoPatch parameters, Context context) {
+ return serviceManager
+ .devices()
+ .updateExtendedInformationWithResponse(deviceName, resourceGroupName, parameters, context);
+ }
+
public UploadCertificateResponse uploadCertificate(UploadCertificateRequest parameters) {
return serviceManager.devices().uploadCertificate(deviceName, resourceGroupName, parameters);
}
@@ -298,23 +356,33 @@ public DataBoxEdgeDeviceImpl withEtag(String etag) {
return this;
}
- public DataBoxEdgeDeviceImpl withDataBoxEdgeDeviceStatus(DataBoxEdgeDeviceStatus dataBoxEdgeDeviceStatus) {
- this.innerModel().withDataBoxEdgeDeviceStatus(dataBoxEdgeDeviceStatus);
+ public DataBoxEdgeDeviceImpl withIdentity(ResourceIdentity identity) {
+ if (isInCreateMode()) {
+ this.innerModel().withIdentity(identity);
+ return this;
+ } else {
+ this.updateParameters.withIdentity(identity);
+ return this;
+ }
+ }
+
+ public DataBoxEdgeDeviceImpl withKind(DataBoxEdgeDeviceKind kind) {
+ this.innerModel().withKind(kind);
return this;
}
- public DataBoxEdgeDeviceImpl withDescription(String description) {
- this.innerModel().withDescription(description);
+ public DataBoxEdgeDeviceImpl withDataBoxEdgeDeviceStatus(DataBoxEdgeDeviceStatus dataBoxEdgeDeviceStatus) {
+ this.innerModel().withDataBoxEdgeDeviceStatus(dataBoxEdgeDeviceStatus);
return this;
}
- public DataBoxEdgeDeviceImpl withModelDescription(String modelDescription) {
- this.innerModel().withModelDescription(modelDescription);
+ public DataBoxEdgeDeviceImpl withDataResidency(DataResidency dataResidency) {
+ this.innerModel().withDataResidency(dataResidency);
return this;
}
- public DataBoxEdgeDeviceImpl withFriendlyName(String friendlyName) {
- this.innerModel().withFriendlyName(friendlyName);
+ public DataBoxEdgeDeviceImpl withEdgeProfile(EdgeProfilePatch edgeProfile) {
+ this.updateParameters.withEdgeProfile(edgeProfile);
return this;
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DataBoxEdgeManagementClientImpl.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DataBoxEdgeManagementClientImpl.java
index 0bd69b360138d..e2055c7c62b50 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DataBoxEdgeManagementClientImpl.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DataBoxEdgeManagementClientImpl.java
@@ -21,21 +21,25 @@
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.serializer.SerializerAdapter;
import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.databoxedge.fluent.AddonsClient;
import com.azure.resourcemanager.databoxedge.fluent.AlertsClient;
+import com.azure.resourcemanager.databoxedge.fluent.AvailableSkusClient;
import com.azure.resourcemanager.databoxedge.fluent.BandwidthSchedulesClient;
import com.azure.resourcemanager.databoxedge.fluent.ContainersClient;
import com.azure.resourcemanager.databoxedge.fluent.DataBoxEdgeManagementClient;
import com.azure.resourcemanager.databoxedge.fluent.DevicesClient;
+import com.azure.resourcemanager.databoxedge.fluent.DiagnosticSettingsClient;
import com.azure.resourcemanager.databoxedge.fluent.JobsClient;
+import com.azure.resourcemanager.databoxedge.fluent.MonitoringConfigsClient;
import com.azure.resourcemanager.databoxedge.fluent.NodesClient;
import com.azure.resourcemanager.databoxedge.fluent.OperationsClient;
import com.azure.resourcemanager.databoxedge.fluent.OperationsStatusClient;
import com.azure.resourcemanager.databoxedge.fluent.OrdersClient;
import com.azure.resourcemanager.databoxedge.fluent.RolesClient;
import com.azure.resourcemanager.databoxedge.fluent.SharesClient;
-import com.azure.resourcemanager.databoxedge.fluent.SkusClient;
import com.azure.resourcemanager.databoxedge.fluent.StorageAccountCredentialsClient;
import com.azure.resourcemanager.databoxedge.fluent.StorageAccountsClient;
+import com.azure.resourcemanager.databoxedge.fluent.SupportPackagesClient;
import com.azure.resourcemanager.databoxedge.fluent.TriggersClient;
import com.azure.resourcemanager.databoxedge.fluent.UsersClient;
import java.io.IOException;
@@ -137,6 +141,18 @@ public OperationsClient getOperations() {
return this.operations;
}
+ /** The AvailableSkusClient object to access its operations. */
+ private final AvailableSkusClient availableSkus;
+
+ /**
+ * Gets the AvailableSkusClient object to access its operations.
+ *
+ * @return the AvailableSkusClient object.
+ */
+ public AvailableSkusClient getAvailableSkus() {
+ return this.availableSkus;
+ }
+
/** The DevicesClient object to access its operations. */
private final DevicesClient devices;
@@ -173,6 +189,18 @@ public BandwidthSchedulesClient getBandwidthSchedules() {
return this.bandwidthSchedules;
}
+ /** The DiagnosticSettingsClient object to access its operations. */
+ private final DiagnosticSettingsClient diagnosticSettings;
+
+ /**
+ * Gets the DiagnosticSettingsClient object to access its operations.
+ *
+ * @return the DiagnosticSettingsClient object.
+ */
+ public DiagnosticSettingsClient getDiagnosticSettings() {
+ return this.diagnosticSettings;
+ }
+
/** The JobsClient object to access its operations. */
private final JobsClient jobs;
@@ -233,6 +261,30 @@ public RolesClient getRoles() {
return this.roles;
}
+ /** The AddonsClient object to access its operations. */
+ private final AddonsClient addons;
+
+ /**
+ * Gets the AddonsClient object to access its operations.
+ *
+ * @return the AddonsClient object.
+ */
+ public AddonsClient getAddons() {
+ return this.addons;
+ }
+
+ /** The MonitoringConfigsClient object to access its operations. */
+ private final MonitoringConfigsClient monitoringConfigs;
+
+ /**
+ * Gets the MonitoringConfigsClient object to access its operations.
+ *
+ * @return the MonitoringConfigsClient object.
+ */
+ public MonitoringConfigsClient getMonitoringConfigs() {
+ return this.monitoringConfigs;
+ }
+
/** The SharesClient object to access its operations. */
private final SharesClient shares;
@@ -293,28 +345,28 @@ public TriggersClient getTriggers() {
return this.triggers;
}
- /** The UsersClient object to access its operations. */
- private final UsersClient users;
+ /** The SupportPackagesClient object to access its operations. */
+ private final SupportPackagesClient supportPackages;
/**
- * Gets the UsersClient object to access its operations.
+ * Gets the SupportPackagesClient object to access its operations.
*
- * @return the UsersClient object.
+ * @return the SupportPackagesClient object.
*/
- public UsersClient getUsers() {
- return this.users;
+ public SupportPackagesClient getSupportPackages() {
+ return this.supportPackages;
}
- /** The SkusClient object to access its operations. */
- private final SkusClient skus;
+ /** The UsersClient object to access its operations. */
+ private final UsersClient users;
/**
- * Gets the SkusClient object to access its operations.
+ * Gets the UsersClient object to access its operations.
*
- * @return the SkusClient object.
+ * @return the UsersClient object.
*/
- public SkusClient getSkus() {
- return this.skus;
+ public UsersClient getUsers() {
+ return this.users;
}
/**
@@ -339,23 +391,27 @@ public SkusClient getSkus() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2019-08-01";
+ this.apiVersion = "2021-06-01";
this.operations = new OperationsClientImpl(this);
+ this.availableSkus = new AvailableSkusClientImpl(this);
this.devices = new DevicesClientImpl(this);
this.alerts = new AlertsClientImpl(this);
this.bandwidthSchedules = new BandwidthSchedulesClientImpl(this);
+ this.diagnosticSettings = new DiagnosticSettingsClientImpl(this);
this.jobs = new JobsClientImpl(this);
this.nodes = new NodesClientImpl(this);
this.operationsStatus = new OperationsStatusClientImpl(this);
this.orders = new OrdersClientImpl(this);
this.roles = new RolesClientImpl(this);
+ this.addons = new AddonsClientImpl(this);
+ this.monitoringConfigs = new MonitoringConfigsClientImpl(this);
this.shares = new SharesClientImpl(this);
this.storageAccountCredentials = new StorageAccountCredentialsClientImpl(this);
this.storageAccounts = new StorageAccountsClientImpl(this);
this.containers = new ContainersClientImpl(this);
this.triggers = new TriggersClientImpl(this);
+ this.supportPackages = new SupportPackagesClientImpl(this);
this.users = new UsersClientImpl(this);
- this.skus = new SkusClientImpl(this);
}
/**
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/ResourceTypeSkuImpl.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DataBoxEdgeSkuImpl.java
similarity index 61%
rename from sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/ResourceTypeSkuImpl.java
rename to sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DataBoxEdgeSkuImpl.java
index 52a889e6252be..052366788c0b4 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/ResourceTypeSkuImpl.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DataBoxEdgeSkuImpl.java
@@ -4,23 +4,27 @@
package com.azure.resourcemanager.databoxedge.implementation;
-import com.azure.resourcemanager.databoxedge.fluent.models.ResourceTypeSkuInner;
-import com.azure.resourcemanager.databoxedge.models.ResourceTypeSku;
+import com.azure.resourcemanager.databoxedge.fluent.models.DataBoxEdgeSkuInner;
+import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeSku;
+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 java.util.Collections;
import java.util.List;
-public final class ResourceTypeSkuImpl implements ResourceTypeSku {
- private ResourceTypeSkuInner innerObject;
+public final class DataBoxEdgeSkuImpl implements DataBoxEdgeSku {
+ private DataBoxEdgeSkuInner innerObject;
private final com.azure.resourcemanager.databoxedge.DataBoxEdgeManager serviceManager;
- ResourceTypeSkuImpl(
- ResourceTypeSkuInner innerObject, com.azure.resourcemanager.databoxedge.DataBoxEdgeManager serviceManager) {
+ DataBoxEdgeSkuImpl(
+ DataBoxEdgeSkuInner innerObject, com.azure.resourcemanager.databoxedge.DataBoxEdgeManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
@@ -41,6 +45,10 @@ public SkuTier tier() {
return this.innerModel().tier();
}
+ public String size() {
+ return this.innerModel().size();
+ }
+
public String family() {
return this.innerModel().family();
}
@@ -81,8 +89,29 @@ public List costs() {
}
}
- public List restrictions() {
- List inner = this.innerModel().restrictions();
+ public SkuSignupOption signupOption() {
+ return this.innerModel().signupOption();
+ }
+
+ public SkuVersion version() {
+ return this.innerModel().version();
+ }
+
+ public SkuAvailability availability() {
+ return this.innerModel().availability();
+ }
+
+ public List shipmentTypes() {
+ List inner = this.innerModel().shipmentTypes();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public List capabilities() {
+ List inner = this.innerModel().capabilities();
if (inner != null) {
return Collections.unmodifiableList(inner);
} else {
@@ -90,7 +119,7 @@ public List restrictions() {
}
}
- public ResourceTypeSkuInner innerModel() {
+ public DataBoxEdgeSkuInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DevicesClientImpl.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DevicesClientImpl.java
index e5634b63af14d..70361c41a71be 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DevicesClientImpl.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DevicesClientImpl.java
@@ -37,9 +37,11 @@
import com.azure.resourcemanager.databoxedge.fluent.DevicesClient;
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.DataBoxEdgeDeviceList;
import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeDevicePatch;
import com.azure.resourcemanager.databoxedge.models.SecuritySettings;
@@ -123,7 +125,7 @@ Mono> getByResourceGroup(
+ "/dataBoxEdgeDevices/{deviceName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(
+ Mono> createOrUpdate(
@HostParam("$host") String endpoint,
@PathParam("deviceName") String deviceName,
@PathParam("subscriptionId") String subscriptionId,
@@ -179,6 +181,21 @@ Mono>> downloadUpdates(
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge"
+ + "/dataBoxEdgeDevices/{deviceName}/generateCertificate")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> generateCertificate(
+ @HostParam("$host") String endpoint,
+ @PathParam("deviceName") String deviceName,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Post(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge"
@@ -255,6 +272,22 @@ Mono>> createOrUpdateSecuritySettings(
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge"
+ + "/dataBoxEdgeDevices/{deviceName}/updateExtendedInformation")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> updateExtendedInformation(
+ @HostParam("$host") String endpoint,
+ @PathParam("deviceName") String deviceName,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") DataBoxEdgeDeviceExtendedInfoPatch parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge"
@@ -835,7 +868,7 @@ public Response getByResourceGroupWithResponse(
* @return the Data Box Edge/Gateway device.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(
+ private Mono> createOrUpdateWithResponseAsync(
String deviceName, String resourceGroupName, DataBoxEdgeDeviceInner dataBoxEdgeDevice) {
if (this.client.getEndpoint() == null) {
return Mono
@@ -892,7 +925,7 @@ private Mono>> createOrUpdateWithResponseAsync(
* @return the Data Box Edge/Gateway device.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(
+ private Mono> createOrUpdateWithResponseAsync(
String deviceName, String resourceGroupName, DataBoxEdgeDeviceInner dataBoxEdgeDevice, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
@@ -933,95 +966,6 @@ private Mono>> createOrUpdateWithResponseAsync(
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 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)
- private PollerFlux, DataBoxEdgeDeviceInner> beginCreateOrUpdateAsync(
- String deviceName, String resourceGroupName, DataBoxEdgeDeviceInner dataBoxEdgeDevice) {
- Mono>> mono =
- createOrUpdateWithResponseAsync(deviceName, resourceGroupName, dataBoxEdgeDevice);
- return this
- .client
- .getLroResult(
- mono,
- this.client.getHttpPipeline(),
- DataBoxEdgeDeviceInner.class,
- DataBoxEdgeDeviceInner.class,
- Context.NONE);
- }
-
- /**
- * 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 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)
- private PollerFlux, DataBoxEdgeDeviceInner> beginCreateOrUpdateAsync(
- String deviceName, String resourceGroupName, DataBoxEdgeDeviceInner dataBoxEdgeDevice, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono =
- createOrUpdateWithResponseAsync(deviceName, resourceGroupName, dataBoxEdgeDevice, context);
- return this
- .client
- .getLroResult(
- mono,
- this.client.getHttpPipeline(),
- DataBoxEdgeDeviceInner.class,
- DataBoxEdgeDeviceInner.class,
- 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 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)
- public SyncPoller, DataBoxEdgeDeviceInner> beginCreateOrUpdate(
- String deviceName, String resourceGroupName, DataBoxEdgeDeviceInner dataBoxEdgeDevice) {
- return beginCreateOrUpdateAsync(deviceName, resourceGroupName, dataBoxEdgeDevice).getSyncPoller();
- }
-
- /**
- * 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 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)
- public SyncPoller, DataBoxEdgeDeviceInner> beginCreateOrUpdate(
- String deviceName, String resourceGroupName, DataBoxEdgeDeviceInner dataBoxEdgeDevice, Context context) {
- return beginCreateOrUpdateAsync(deviceName, resourceGroupName, dataBoxEdgeDevice, context).getSyncPoller();
- }
-
/**
* Creates or updates a Data Box Edge/Data Box Gateway resource.
*
@@ -1036,29 +980,15 @@ public SyncPoller, DataBoxEdgeDeviceInner> be
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
String deviceName, String resourceGroupName, DataBoxEdgeDeviceInner dataBoxEdgeDevice) {
- return beginCreateOrUpdateAsync(deviceName, resourceGroupName, dataBoxEdgeDevice)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * 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 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)
- private Mono createOrUpdateAsync(
- String deviceName, String resourceGroupName, DataBoxEdgeDeviceInner dataBoxEdgeDevice, Context context) {
- return beginCreateOrUpdateAsync(deviceName, resourceGroupName, dataBoxEdgeDevice, context)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
+ return createOrUpdateWithResponseAsync(deviceName, resourceGroupName, dataBoxEdgeDevice)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
}
/**
@@ -1091,9 +1021,9 @@ public DataBoxEdgeDeviceInner createOrUpdate(
* @return the Data Box Edge/Gateway device.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public DataBoxEdgeDeviceInner createOrUpdate(
+ public Response createOrUpdateWithResponse(
String deviceName, String resourceGroupName, DataBoxEdgeDeviceInner dataBoxEdgeDevice, Context context) {
- return createOrUpdateAsync(deviceName, resourceGroupName, dataBoxEdgeDevice, context).block();
+ return createOrUpdateWithResponseAsync(deviceName, resourceGroupName, dataBoxEdgeDevice, context).block();
}
/**
@@ -1721,14 +1651,163 @@ public void downloadUpdates(String deviceName, String resourceGroupName, 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 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)
+ private Mono> generateCertificateWithResponseAsync(
+ String deviceName, String resourceGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .generateCertificate(
+ this.client.getEndpoint(),
+ deviceName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> generateCertificateWithResponseAsync(
+ String deviceName, String resourceGroupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .generateCertificate(
+ this.client.getEndpoint(),
+ deviceName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono generateCertificateAsync(String deviceName, String resourceGroupName) {
+ return generateCertificateWithResponseAsync(deviceName, resourceGroupName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public GenerateCertResponseInner generateCertificate(String deviceName, String resourceGroupName) {
+ return generateCertificateAsync(deviceName, resourceGroupName).block();
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response generateCertificateWithResponse(
+ String deviceName, String resourceGroupName, Context context) {
+ return generateCertificateWithResponseAsync(deviceName, resourceGroupName, context).block();
+ }
+
+ /**
+ * 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 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)
private Mono> getExtendedInformationWithResponseAsync(
@@ -1769,7 +1848,7 @@ private Mono> getExtendedInformatio
}
/**
- * 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.
@@ -1777,7 +1856,7 @@ private Mono> getExtendedInformatio
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getExtendedInformationWithResponseAsync(
@@ -1815,14 +1894,14 @@ private Mono> getExtendedInformatio
}
/**
- * 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getExtendedInformationAsync(
@@ -1839,14 +1918,14 @@ private Mono getExtendedInformationAsync(
}
/**
- * 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public DataBoxEdgeDeviceExtendedInfoInner getExtendedInformation(String deviceName, String resourceGroupName) {
@@ -1854,7 +1933,7 @@ public DataBoxEdgeDeviceExtendedInfoInner getExtendedInformation(String deviceNa
}
/**
- * 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.
@@ -1862,7 +1941,7 @@ public DataBoxEdgeDeviceExtendedInfoInner getExtendedInformation(String deviceNa
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getExtendedInformationWithResponse(
@@ -2740,6 +2819,174 @@ public void createOrUpdateSecuritySettings(
createOrUpdateSecuritySettingsAsync(deviceName, resourceGroupName, securitySettings, context).block();
}
+ /**
+ * 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 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)
+ private Mono> updateExtendedInformationWithResponseAsync(
+ String deviceName, String resourceGroupName, DataBoxEdgeDeviceExtendedInfoPatch parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .updateExtendedInformation(
+ this.client.getEndpoint(),
+ deviceName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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)
+ private Mono> updateExtendedInformationWithResponseAsync(
+ String deviceName, String resourceGroupName, DataBoxEdgeDeviceExtendedInfoPatch parameters, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .updateExtendedInformation(
+ this.client.getEndpoint(),
+ deviceName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ 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 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)
+ private Mono updateExtendedInformationAsync(
+ String deviceName, String resourceGroupName, DataBoxEdgeDeviceExtendedInfoPatch parameters) {
+ return updateExtendedInformationWithResponseAsync(deviceName, resourceGroupName, parameters)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * 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 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)
+ public DataBoxEdgeDeviceExtendedInfoInner updateExtendedInformation(
+ String deviceName, String resourceGroupName, DataBoxEdgeDeviceExtendedInfoPatch parameters) {
+ return updateExtendedInformationAsync(deviceName, resourceGroupName, parameters).block();
+ }
+
+ /**
+ * 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 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)
+ public Response updateExtendedInformationWithResponse(
+ String deviceName, String resourceGroupName, DataBoxEdgeDeviceExtendedInfoPatch parameters, Context context) {
+ return updateExtendedInformationWithResponseAsync(deviceName, resourceGroupName, parameters, context).block();
+ }
+
/**
* 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.
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DevicesImpl.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DevicesImpl.java
index 4cef08e00fdf3..59c8779693e77 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DevicesImpl.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DevicesImpl.java
@@ -12,12 +12,15 @@
import com.azure.resourcemanager.databoxedge.fluent.DevicesClient;
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.DataBoxEdgeDevice;
import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeDeviceExtendedInfo;
+import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeDeviceExtendedInfoPatch;
import com.azure.resourcemanager.databoxedge.models.Devices;
+import com.azure.resourcemanager.databoxedge.models.GenerateCertResponse;
import com.azure.resourcemanager.databoxedge.models.NetworkSettings;
import com.azure.resourcemanager.databoxedge.models.SecuritySettings;
import com.azure.resourcemanager.databoxedge.models.UpdateSummary;
@@ -100,6 +103,30 @@ public void downloadUpdates(String deviceName, String resourceGroupName, Context
this.serviceClient().downloadUpdates(deviceName, resourceGroupName, context);
}
+ public GenerateCertResponse generateCertificate(String deviceName, String resourceGroupName) {
+ GenerateCertResponseInner inner = this.serviceClient().generateCertificate(deviceName, resourceGroupName);
+ if (inner != null) {
+ return new GenerateCertResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response generateCertificateWithResponse(
+ String deviceName, String resourceGroupName, Context context) {
+ Response inner =
+ this.serviceClient().generateCertificateWithResponse(deviceName, resourceGroupName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new GenerateCertResponseImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
public DataBoxEdgeDeviceExtendedInfo getExtendedInformation(String deviceName, String resourceGroupName) {
DataBoxEdgeDeviceExtendedInfoInner inner =
this.serviceClient().getExtendedInformation(deviceName, resourceGroupName);
@@ -175,6 +202,34 @@ public void createOrUpdateSecuritySettings(
this.serviceClient().createOrUpdateSecuritySettings(deviceName, resourceGroupName, securitySettings, context);
}
+ public DataBoxEdgeDeviceExtendedInfo updateExtendedInformation(
+ String deviceName, String resourceGroupName, DataBoxEdgeDeviceExtendedInfoPatch parameters) {
+ DataBoxEdgeDeviceExtendedInfoInner inner =
+ this.serviceClient().updateExtendedInformation(deviceName, resourceGroupName, parameters);
+ if (inner != null) {
+ return new DataBoxEdgeDeviceExtendedInfoImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response updateExtendedInformationWithResponse(
+ String deviceName, String resourceGroupName, DataBoxEdgeDeviceExtendedInfoPatch parameters, Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .updateExtendedInformationWithResponse(deviceName, resourceGroupName, parameters, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new DataBoxEdgeDeviceExtendedInfoImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
public UpdateSummary getUpdateSummary(String deviceName, String resourceGroupName) {
UpdateSummaryInner inner = this.serviceClient().getUpdateSummary(deviceName, resourceGroupName);
if (inner != null) {
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DiagnosticProactiveLogCollectionSettingsImpl.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DiagnosticProactiveLogCollectionSettingsImpl.java
new file mode 100644
index 0000000000000..e614ef59309aa
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DiagnosticProactiveLogCollectionSettingsImpl.java
@@ -0,0 +1,51 @@
+// 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.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.databoxedge.fluent.models.DiagnosticProactiveLogCollectionSettingsInner;
+import com.azure.resourcemanager.databoxedge.models.DiagnosticProactiveLogCollectionSettings;
+import com.azure.resourcemanager.databoxedge.models.ProactiveDiagnosticsConsent;
+
+public final class DiagnosticProactiveLogCollectionSettingsImpl implements DiagnosticProactiveLogCollectionSettings {
+ private DiagnosticProactiveLogCollectionSettingsInner innerObject;
+
+ private final com.azure.resourcemanager.databoxedge.DataBoxEdgeManager serviceManager;
+
+ DiagnosticProactiveLogCollectionSettingsImpl(
+ DiagnosticProactiveLogCollectionSettingsInner innerObject,
+ com.azure.resourcemanager.databoxedge.DataBoxEdgeManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public ProactiveDiagnosticsConsent userConsent() {
+ return this.innerModel().userConsent();
+ }
+
+ public DiagnosticProactiveLogCollectionSettingsInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DiagnosticRemoteSupportSettingsImpl.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DiagnosticRemoteSupportSettingsImpl.java
new file mode 100644
index 0000000000000..23718621ded59
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DiagnosticRemoteSupportSettingsImpl.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.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.databoxedge.fluent.models.DiagnosticRemoteSupportSettingsInner;
+import com.azure.resourcemanager.databoxedge.models.DiagnosticRemoteSupportSettings;
+import com.azure.resourcemanager.databoxedge.models.RemoteSupportSettings;
+import java.util.Collections;
+import java.util.List;
+
+public final class DiagnosticRemoteSupportSettingsImpl implements DiagnosticRemoteSupportSettings {
+ private DiagnosticRemoteSupportSettingsInner innerObject;
+
+ private final com.azure.resourcemanager.databoxedge.DataBoxEdgeManager serviceManager;
+
+ DiagnosticRemoteSupportSettingsImpl(
+ DiagnosticRemoteSupportSettingsInner innerObject,
+ com.azure.resourcemanager.databoxedge.DataBoxEdgeManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public List remoteSupportSettingsList() {
+ List inner = this.innerModel().remoteSupportSettingsList();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public DiagnosticRemoteSupportSettingsInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DiagnosticSettingsClientImpl.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DiagnosticSettingsClientImpl.java
new file mode 100644
index 0000000000000..2adece08db92c
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/implementation/DiagnosticSettingsClientImpl.java
@@ -0,0 +1,1072 @@
+// 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.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.databoxedge.fluent.DiagnosticSettingsClient;
+import com.azure.resourcemanager.databoxedge.fluent.models.DiagnosticProactiveLogCollectionSettingsInner;
+import com.azure.resourcemanager.databoxedge.fluent.models.DiagnosticRemoteSupportSettingsInner;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in DiagnosticSettingsClient. */
+public final class DiagnosticSettingsClientImpl implements DiagnosticSettingsClient {
+ private final ClientLogger logger = new ClientLogger(DiagnosticSettingsClientImpl.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final DiagnosticSettingsService service;
+
+ /** The service client containing this operation class. */
+ private final DataBoxEdgeManagementClientImpl client;
+
+ /**
+ * Initializes an instance of DiagnosticSettingsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ DiagnosticSettingsClientImpl(DataBoxEdgeManagementClientImpl client) {
+ this.service =
+ RestProxy.create(DiagnosticSettingsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for DataBoxEdgeManagementClientDiagnosticSettings to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "DataBoxEdgeManagemen")
+ private interface DiagnosticSettingsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge"
+ + "/dataBoxEdgeDevices/{deviceName}/diagnosticProactiveLogCollectionSettings/default")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getDiagnosticProactiveLogCollectionSettings(
+ @HostParam("$host") String endpoint,
+ @PathParam("deviceName") String deviceName,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge"
+ + "/dataBoxEdgeDevices/{deviceName}/diagnosticProactiveLogCollectionSettings/default")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> updateDiagnosticProactiveLogCollectionSettings(
+ @HostParam("$host") String endpoint,
+ @PathParam("deviceName") String deviceName,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") DiagnosticProactiveLogCollectionSettingsInner proactiveLogCollectionSettings,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge"
+ + "/dataBoxEdgeDevices/{deviceName}/diagnosticRemoteSupportSettings/default")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getDiagnosticRemoteSupportSettings(
+ @HostParam("$host") String endpoint,
+ @PathParam("deviceName") String deviceName,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge"
+ + "/dataBoxEdgeDevices/{deviceName}/diagnosticRemoteSupportSettings/default")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> updateDiagnosticRemoteSupportSettings(
+ @HostParam("$host") String endpoint,
+ @PathParam("deviceName") String deviceName,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") DiagnosticRemoteSupportSettingsInner diagnosticRemoteSupportSettings,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * 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 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)
+ private Mono>
+ getDiagnosticProactiveLogCollectionSettingsWithResponseAsync(String deviceName, String resourceGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getDiagnosticProactiveLogCollectionSettings(
+ this.client.getEndpoint(),
+ deviceName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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)
+ private Mono>
+ getDiagnosticProactiveLogCollectionSettingsWithResponseAsync(
+ String deviceName, String resourceGroupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .getDiagnosticProactiveLogCollectionSettings(
+ this.client.getEndpoint(),
+ deviceName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * 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 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)
+ private Mono getDiagnosticProactiveLogCollectionSettingsAsync(
+ String deviceName, String resourceGroupName) {
+ return getDiagnosticProactiveLogCollectionSettingsWithResponseAsync(deviceName, resourceGroupName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * 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 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)
+ public DiagnosticProactiveLogCollectionSettingsInner getDiagnosticProactiveLogCollectionSettings(
+ String deviceName, String resourceGroupName) {
+ return getDiagnosticProactiveLogCollectionSettingsAsync(deviceName, resourceGroupName).block();
+ }
+
+ /**
+ * 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 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)
+ public Response
+ getDiagnosticProactiveLogCollectionSettingsWithResponse(
+ String deviceName, String resourceGroupName, Context context) {
+ return getDiagnosticProactiveLogCollectionSettingsWithResponseAsync(deviceName, resourceGroupName, context)
+ .block();
+ }
+
+ /**
+ * 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 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)
+ private Mono>> updateDiagnosticProactiveLogCollectionSettingsWithResponseAsync(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticProactiveLogCollectionSettingsInner proactiveLogCollectionSettings) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (proactiveLogCollectionSettings == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter proactiveLogCollectionSettings is required and cannot be null."));
+ } else {
+ proactiveLogCollectionSettings.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .updateDiagnosticProactiveLogCollectionSettings(
+ this.client.getEndpoint(),
+ deviceName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ proactiveLogCollectionSettings,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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)
+ private Mono>> updateDiagnosticProactiveLogCollectionSettingsWithResponseAsync(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticProactiveLogCollectionSettingsInner proactiveLogCollectionSettings,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (proactiveLogCollectionSettings == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter proactiveLogCollectionSettings is required and cannot be null."));
+ } else {
+ proactiveLogCollectionSettings.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .updateDiagnosticProactiveLogCollectionSettings(
+ this.client.getEndpoint(),
+ deviceName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ proactiveLogCollectionSettings,
+ accept,
+ 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 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)
+ private PollerFlux<
+ PollResult, DiagnosticProactiveLogCollectionSettingsInner>
+ beginUpdateDiagnosticProactiveLogCollectionSettingsAsync(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticProactiveLogCollectionSettingsInner proactiveLogCollectionSettings) {
+ Mono>> mono =
+ updateDiagnosticProactiveLogCollectionSettingsWithResponseAsync(
+ deviceName, resourceGroupName, proactiveLogCollectionSettings);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ DiagnosticProactiveLogCollectionSettingsInner.class,
+ DiagnosticProactiveLogCollectionSettingsInner.class,
+ Context.NONE);
+ }
+
+ /**
+ * 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 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)
+ private PollerFlux<
+ PollResult, DiagnosticProactiveLogCollectionSettingsInner>
+ beginUpdateDiagnosticProactiveLogCollectionSettingsAsync(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticProactiveLogCollectionSettingsInner proactiveLogCollectionSettings,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ updateDiagnosticProactiveLogCollectionSettingsWithResponseAsync(
+ deviceName, resourceGroupName, proactiveLogCollectionSettings, context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ DiagnosticProactiveLogCollectionSettingsInner.class,
+ DiagnosticProactiveLogCollectionSettingsInner.class,
+ 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 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)
+ public SyncPoller<
+ PollResult, DiagnosticProactiveLogCollectionSettingsInner>
+ beginUpdateDiagnosticProactiveLogCollectionSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticProactiveLogCollectionSettingsInner proactiveLogCollectionSettings) {
+ return beginUpdateDiagnosticProactiveLogCollectionSettingsAsync(
+ deviceName, resourceGroupName, proactiveLogCollectionSettings)
+ .getSyncPoller();
+ }
+
+ /**
+ * 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 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)
+ public SyncPoller<
+ PollResult, DiagnosticProactiveLogCollectionSettingsInner>
+ beginUpdateDiagnosticProactiveLogCollectionSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticProactiveLogCollectionSettingsInner proactiveLogCollectionSettings,
+ Context context) {
+ return beginUpdateDiagnosticProactiveLogCollectionSettingsAsync(
+ deviceName, resourceGroupName, proactiveLogCollectionSettings, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * 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 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)
+ private Mono updateDiagnosticProactiveLogCollectionSettingsAsync(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticProactiveLogCollectionSettingsInner proactiveLogCollectionSettings) {
+ return beginUpdateDiagnosticProactiveLogCollectionSettingsAsync(
+ deviceName, resourceGroupName, proactiveLogCollectionSettings)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * 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 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)
+ private Mono updateDiagnosticProactiveLogCollectionSettingsAsync(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticProactiveLogCollectionSettingsInner proactiveLogCollectionSettings,
+ Context context) {
+ return beginUpdateDiagnosticProactiveLogCollectionSettingsAsync(
+ deviceName, resourceGroupName, proactiveLogCollectionSettings, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * 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 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)
+ public DiagnosticProactiveLogCollectionSettingsInner updateDiagnosticProactiveLogCollectionSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticProactiveLogCollectionSettingsInner proactiveLogCollectionSettings) {
+ return updateDiagnosticProactiveLogCollectionSettingsAsync(
+ deviceName, resourceGroupName, proactiveLogCollectionSettings)
+ .block();
+ }
+
+ /**
+ * 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 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)
+ public DiagnosticProactiveLogCollectionSettingsInner updateDiagnosticProactiveLogCollectionSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticProactiveLogCollectionSettingsInner proactiveLogCollectionSettings,
+ Context context) {
+ return updateDiagnosticProactiveLogCollectionSettingsAsync(
+ deviceName, resourceGroupName, proactiveLogCollectionSettings, context)
+ .block();
+ }
+
+ /**
+ * 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 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)
+ private Mono> getDiagnosticRemoteSupportSettingsWithResponseAsync(
+ String deviceName, String resourceGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getDiagnosticRemoteSupportSettings(
+ this.client.getEndpoint(),
+ deviceName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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)
+ private Mono> getDiagnosticRemoteSupportSettingsWithResponseAsync(
+ String deviceName, String resourceGroupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .getDiagnosticRemoteSupportSettings(
+ this.client.getEndpoint(),
+ deviceName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ 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 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)
+ private Mono getDiagnosticRemoteSupportSettingsAsync(
+ String deviceName, String resourceGroupName) {
+ return getDiagnosticRemoteSupportSettingsWithResponseAsync(deviceName, resourceGroupName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * 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 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)
+ public DiagnosticRemoteSupportSettingsInner getDiagnosticRemoteSupportSettings(
+ String deviceName, String resourceGroupName) {
+ return getDiagnosticRemoteSupportSettingsAsync(deviceName, resourceGroupName).block();
+ }
+
+ /**
+ * 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 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)
+ public Response getDiagnosticRemoteSupportSettingsWithResponse(
+ String deviceName, String resourceGroupName, Context context) {
+ return getDiagnosticRemoteSupportSettingsWithResponseAsync(deviceName, resourceGroupName, context).block();
+ }
+
+ /**
+ * 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 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)
+ private Mono>> updateDiagnosticRemoteSupportSettingsWithResponseAsync(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticRemoteSupportSettingsInner diagnosticRemoteSupportSettings) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (diagnosticRemoteSupportSettings == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter diagnosticRemoteSupportSettings is required and cannot be null."));
+ } else {
+ diagnosticRemoteSupportSettings.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .updateDiagnosticRemoteSupportSettings(
+ this.client.getEndpoint(),
+ deviceName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ diagnosticRemoteSupportSettings,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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)
+ private Mono>> updateDiagnosticRemoteSupportSettingsWithResponseAsync(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticRemoteSupportSettingsInner diagnosticRemoteSupportSettings,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (diagnosticRemoteSupportSettings == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter diagnosticRemoteSupportSettings is required and cannot be null."));
+ } else {
+ diagnosticRemoteSupportSettings.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .updateDiagnosticRemoteSupportSettings(
+ this.client.getEndpoint(),
+ deviceName,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ diagnosticRemoteSupportSettings,
+ accept,
+ 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 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)
+ private PollerFlux, DiagnosticRemoteSupportSettingsInner>
+ beginUpdateDiagnosticRemoteSupportSettingsAsync(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticRemoteSupportSettingsInner diagnosticRemoteSupportSettings) {
+ Mono>> mono =
+ updateDiagnosticRemoteSupportSettingsWithResponseAsync(
+ deviceName, resourceGroupName, diagnosticRemoteSupportSettings);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ DiagnosticRemoteSupportSettingsInner.class,
+ DiagnosticRemoteSupportSettingsInner.class,
+ Context.NONE);
+ }
+
+ /**
+ * 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 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)
+ private PollerFlux, DiagnosticRemoteSupportSettingsInner>
+ beginUpdateDiagnosticRemoteSupportSettingsAsync(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticRemoteSupportSettingsInner diagnosticRemoteSupportSettings,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ updateDiagnosticRemoteSupportSettingsWithResponseAsync(
+ deviceName, resourceGroupName, diagnosticRemoteSupportSettings, context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ DiagnosticRemoteSupportSettingsInner.class,
+ DiagnosticRemoteSupportSettingsInner.class,
+ 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 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)
+ public SyncPoller, DiagnosticRemoteSupportSettingsInner>
+ beginUpdateDiagnosticRemoteSupportSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticRemoteSupportSettingsInner diagnosticRemoteSupportSettings) {
+ return beginUpdateDiagnosticRemoteSupportSettingsAsync(
+ deviceName, resourceGroupName, diagnosticRemoteSupportSettings)
+ .getSyncPoller();
+ }
+
+ /**
+ * 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 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)
+ public SyncPoller, DiagnosticRemoteSupportSettingsInner>
+ beginUpdateDiagnosticRemoteSupportSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticRemoteSupportSettingsInner diagnosticRemoteSupportSettings,
+ Context context) {
+ return beginUpdateDiagnosticRemoteSupportSettingsAsync(
+ deviceName, resourceGroupName, diagnosticRemoteSupportSettings, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * 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 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)
+ private Mono updateDiagnosticRemoteSupportSettingsAsync(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticRemoteSupportSettingsInner diagnosticRemoteSupportSettings) {
+ return beginUpdateDiagnosticRemoteSupportSettingsAsync(
+ deviceName, resourceGroupName, diagnosticRemoteSupportSettings)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * 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 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)
+ private Mono