scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -176,6 +219,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.
*
@@ -187,6 +241,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -194,9 +261,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -232,20 +301,38 @@ 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);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies
- .add(
- new BearerTokenAuthenticationPolicy(
- credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
- policies.addAll(this.policies);
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
@@ -257,7 +344,11 @@ public DataBoxEdgeManager authenticate(TokenCredential credential, AzureProfile
}
}
- /** @return Resource collection API of Operations. */
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
@@ -265,7 +356,23 @@ public Operations operations() {
return operations;
}
- /** @return Resource collection API of Devices. */
+ /**
+ * Gets the resource collection API of AvailableSkus.
+ *
+ * @return Resource collection API of AvailableSkus.
+ */
+ public AvailableSkus availableSkus() {
+ if (this.availableSkus == null) {
+ this.availableSkus = new AvailableSkusImpl(clientObject.getAvailableSkus(), this);
+ }
+ return availableSkus;
+ }
+
+ /**
+ * Gets the resource collection API of Devices. It manages DataBoxEdgeDevice.
+ *
+ * @return Resource collection API of Devices.
+ */
public Devices devices() {
if (this.devices == null) {
this.devices = new DevicesImpl(clientObject.getDevices(), this);
@@ -273,7 +380,11 @@ public Devices devices() {
return devices;
}
- /** @return Resource collection API of Alerts. */
+ /**
+ * Gets the resource collection API of Alerts.
+ *
+ * @return Resource collection API of Alerts.
+ */
public Alerts alerts() {
if (this.alerts == null) {
this.alerts = new AlertsImpl(clientObject.getAlerts(), this);
@@ -281,7 +392,11 @@ public Alerts alerts() {
return alerts;
}
- /** @return Resource collection API of BandwidthSchedules. */
+ /**
+ * Gets the resource collection API of BandwidthSchedules. It manages BandwidthSchedule.
+ *
+ * @return Resource collection API of BandwidthSchedules.
+ */
public BandwidthSchedules bandwidthSchedules() {
if (this.bandwidthSchedules == null) {
this.bandwidthSchedules = new BandwidthSchedulesImpl(clientObject.getBandwidthSchedules(), this);
@@ -289,7 +404,47 @@ public BandwidthSchedules bandwidthSchedules() {
return bandwidthSchedules;
}
- /** @return Resource collection API of Jobs. */
+ /**
+ * Gets the resource collection API of DeviceCapacityChecks.
+ *
+ * @return Resource collection API of DeviceCapacityChecks.
+ */
+ public DeviceCapacityChecks deviceCapacityChecks() {
+ if (this.deviceCapacityChecks == null) {
+ this.deviceCapacityChecks = new DeviceCapacityChecksImpl(clientObject.getDeviceCapacityChecks(), this);
+ }
+ return deviceCapacityChecks;
+ }
+
+ /**
+ * Gets the resource collection API of DeviceCapacityInfoes.
+ *
+ * @return Resource collection API of DeviceCapacityInfoes.
+ */
+ public DeviceCapacityInfoes deviceCapacityInfoes() {
+ if (this.deviceCapacityInfoes == null) {
+ this.deviceCapacityInfoes = new DeviceCapacityInfoesImpl(clientObject.getDeviceCapacityInfoes(), this);
+ }
+ return deviceCapacityInfoes;
+ }
+
+ /**
+ * Gets the resource collection API of DiagnosticSettings.
+ *
+ * @return Resource collection API of DiagnosticSettings.
+ */
+ public DiagnosticSettings diagnosticSettings() {
+ if (this.diagnosticSettings == null) {
+ this.diagnosticSettings = new DiagnosticSettingsImpl(clientObject.getDiagnosticSettings(), this);
+ }
+ return diagnosticSettings;
+ }
+
+ /**
+ * Gets the resource collection API of Jobs.
+ *
+ * @return Resource collection API of Jobs.
+ */
public Jobs jobs() {
if (this.jobs == null) {
this.jobs = new JobsImpl(clientObject.getJobs(), this);
@@ -297,7 +452,11 @@ public Jobs jobs() {
return jobs;
}
- /** @return Resource collection API of Nodes. */
+ /**
+ * Gets the resource collection API of Nodes.
+ *
+ * @return Resource collection API of Nodes.
+ */
public Nodes nodes() {
if (this.nodes == null) {
this.nodes = new NodesImpl(clientObject.getNodes(), this);
@@ -305,7 +464,11 @@ public Nodes nodes() {
return nodes;
}
- /** @return Resource collection API of OperationsStatus. */
+ /**
+ * Gets the resource collection API of OperationsStatus.
+ *
+ * @return Resource collection API of OperationsStatus.
+ */
public OperationsStatus operationsStatus() {
if (this.operationsStatus == null) {
this.operationsStatus = new OperationsStatusImpl(clientObject.getOperationsStatus(), this);
@@ -313,7 +476,11 @@ public OperationsStatus operationsStatus() {
return operationsStatus;
}
- /** @return Resource collection API of Orders. */
+ /**
+ * Gets the resource collection API of Orders.
+ *
+ * @return Resource collection API of Orders.
+ */
public Orders orders() {
if (this.orders == null) {
this.orders = new OrdersImpl(clientObject.getOrders(), this);
@@ -321,7 +488,11 @@ public Orders orders() {
return orders;
}
- /** @return Resource collection API of Roles. */
+ /**
+ * Gets the resource collection API of Roles.
+ *
+ * @return Resource collection API of Roles.
+ */
public Roles roles() {
if (this.roles == null) {
this.roles = new RolesImpl(clientObject.getRoles(), this);
@@ -329,7 +500,35 @@ public Roles roles() {
return roles;
}
- /** @return Resource collection API of Shares. */
+ /**
+ * Gets the resource collection API of Addons.
+ *
+ * @return Resource collection API of Addons.
+ */
+ public Addons addons() {
+ if (this.addons == null) {
+ this.addons = new AddonsImpl(clientObject.getAddons(), this);
+ }
+ return addons;
+ }
+
+ /**
+ * Gets the resource collection API of MonitoringConfigs.
+ *
+ * @return Resource collection API of MonitoringConfigs.
+ */
+ public MonitoringConfigs monitoringConfigs() {
+ if (this.monitoringConfigs == null) {
+ this.monitoringConfigs = new MonitoringConfigsImpl(clientObject.getMonitoringConfigs(), this);
+ }
+ return monitoringConfigs;
+ }
+
+ /**
+ * Gets the resource collection API of Shares. It manages Share.
+ *
+ * @return Resource collection API of Shares.
+ */
public Shares shares() {
if (this.shares == null) {
this.shares = new SharesImpl(clientObject.getShares(), this);
@@ -337,7 +536,11 @@ public Shares shares() {
return shares;
}
- /** @return Resource collection API of StorageAccountCredentials. */
+ /**
+ * Gets the resource collection API of StorageAccountCredentials. It manages StorageAccountCredential.
+ *
+ * @return Resource collection API of StorageAccountCredentials.
+ */
public StorageAccountCredentials storageAccountCredentials() {
if (this.storageAccountCredentials == null) {
this.storageAccountCredentials =
@@ -346,7 +549,11 @@ public StorageAccountCredentials storageAccountCredentials() {
return storageAccountCredentials;
}
- /** @return Resource collection API of StorageAccounts. */
+ /**
+ * Gets the resource collection API of StorageAccounts. It manages StorageAccount.
+ *
+ * @return Resource collection API of StorageAccounts.
+ */
public StorageAccounts storageAccounts() {
if (this.storageAccounts == null) {
this.storageAccounts = new StorageAccountsImpl(clientObject.getStorageAccounts(), this);
@@ -354,7 +561,11 @@ public StorageAccounts storageAccounts() {
return storageAccounts;
}
- /** @return Resource collection API of Containers. */
+ /**
+ * Gets the resource collection API of Containers. It manages Container.
+ *
+ * @return Resource collection API of Containers.
+ */
public Containers containers() {
if (this.containers == null) {
this.containers = new ContainersImpl(clientObject.getContainers(), this);
@@ -362,7 +573,11 @@ public Containers containers() {
return containers;
}
- /** @return Resource collection API of Triggers. */
+ /**
+ * Gets the resource collection API of Triggers.
+ *
+ * @return Resource collection API of Triggers.
+ */
public Triggers triggers() {
if (this.triggers == null) {
this.triggers = new TriggersImpl(clientObject.getTriggers(), this);
@@ -370,7 +585,23 @@ public Triggers triggers() {
return triggers;
}
- /** @return Resource collection API of Users. */
+ /**
+ * Gets the resource collection API of SupportPackages.
+ *
+ * @return Resource collection API of SupportPackages.
+ */
+ public SupportPackages supportPackages() {
+ if (this.supportPackages == null) {
+ this.supportPackages = new SupportPackagesImpl(clientObject.getSupportPackages(), this);
+ }
+ return supportPackages;
+ }
+
+ /**
+ * Gets the resource collection API of Users. It manages User.
+ *
+ * @return Resource collection API of Users.
+ */
public Users users() {
if (this.users == null) {
this.users = new UsersImpl(clientObject.getUsers(), this);
@@ -378,14 +609,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 000000000000..87658cffd405
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/AddonsClient.java
@@ -0,0 +1,222 @@
+// 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 as paginated response with {@link
+ * PagedIterable}.
+ */
+ @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 as paginated response with {@link
+ * PagedIterable}.
+ */
+ @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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a specific addon by name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String deviceName, String roleName, String addonName, String resourceGroupName, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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 the {@link SyncPoller} for polling of role Addon.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AddonInner> beginCreateOrUpdate(
+ String deviceName, String roleName, String addonName, String resourceGroupName, AddonInner addon);
+
+ /**
+ * Create or update a addon.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param addonName The addon name.
+ * @param resourceGroupName The resource group name.
+ * @param addon The addon properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of role Addon.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AddonInner> beginCreateOrUpdate(
+ String deviceName,
+ String roleName,
+ String addonName,
+ String resourceGroupName,
+ AddonInner addon,
+ Context context);
+
+ /**
+ * Create or update a addon.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param addonName The addon name.
+ * @param resourceGroupName The resource group name.
+ * @param addon The addon properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return role Addon.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AddonInner createOrUpdate(
+ String deviceName, String roleName, String addonName, String resourceGroupName, AddonInner addon);
+
+ /**
+ * Create or update a addon.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param addonName The addon name.
+ * @param resourceGroupName The resource group name.
+ * @param addon The addon properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return role Addon.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AddonInner createOrUpdate(
+ String deviceName,
+ String roleName,
+ String addonName,
+ String resourceGroupName,
+ AddonInner addon,
+ Context context);
+
+ /**
+ * Deletes the addon on the device.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param addonName The addon name.
+ * @param resourceGroupName The resource group name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String deviceName, String roleName, String addonName, String resourceGroupName);
+
+ /**
+ * Deletes the addon on the device.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param addonName The addon name.
+ * @param resourceGroupName The resource group name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String deviceName, String roleName, String addonName, String resourceGroupName, Context context);
+
+ /**
+ * Deletes the addon on the device.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param addonName The addon name.
+ * @param resourceGroupName The resource group name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String deviceName, String roleName, String addonName, String resourceGroupName);
+
+ /**
+ * Deletes the addon on the device.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param addonName The addon name.
+ * @param resourceGroupName The resource group name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String deviceName, String roleName, String addonName, String resourceGroupName, Context context);
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/AlertsClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/AlertsClient.java
index 334d594b5082..bf4a33a3dc2a 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/AlertsClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/AlertsClient.java
@@ -21,7 +21,8 @@ public interface AlertsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the alerts for a Data Box Edge/Data Box Gateway device.
+ * @return all the alerts for a Data Box Edge/Data Box Gateway device as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDataBoxEdgeDevice(String deviceName, String resourceGroupName);
@@ -35,7 +36,8 @@ public interface AlertsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the alerts for a Data Box Edge/Data Box Gateway device.
+ * @return all the alerts for a Data Box Edge/Data Box Gateway device as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDataBoxEdgeDevice(String deviceName, String resourceGroupName, Context context);
@@ -46,13 +48,14 @@ public interface AlertsClient {
* @param deviceName The device name.
* @param name The alert 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 an alert by name.
+ * @return an alert by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AlertInner get(String deviceName, String name, String resourceGroupName);
+ Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
/**
* Gets an alert by name.
@@ -60,12 +63,11 @@ public interface AlertsClient {
* @param deviceName The device name.
* @param name The alert 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 an alert by name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
+ AlertInner get(String deviceName, String name, String resourceGroupName);
}
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 65%
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 73dc0b341725..fa3dfa540c23 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,30 +8,29 @@
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.
+ * @return list of SKU Information objects as paginated response with {@link PagedIterable}.
*/
@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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of SKU Information objects.
+ * @return list of SKU Information objects as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String filter, Context context);
+ PagedIterable list(Context context);
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/BandwidthSchedulesClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/BandwidthSchedulesClient.java
index bf68720bc8fe..085a14bad87d 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/BandwidthSchedulesClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/BandwidthSchedulesClient.java
@@ -23,7 +23,8 @@ public interface BandwidthSchedulesClient {
* @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 all the bandwidth schedules for a Data Box Edge/Data Box Gateway device.
+ * @return all the bandwidth schedules for a Data Box Edge/Data Box Gateway device as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDataBoxEdgeDevice(String deviceName, String resourceGroupName);
@@ -37,7 +38,8 @@ public interface BandwidthSchedulesClient {
* @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 all the bandwidth schedules for a Data Box Edge/Data Box Gateway device.
+ * @return all the bandwidth schedules for a Data Box Edge/Data Box Gateway device as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDataBoxEdgeDevice(
@@ -49,13 +51,15 @@ PagedIterable listByDataBoxEdgeDevice(
* @param deviceName The device name.
* @param name The bandwidth schedule 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 properties of the specified bandwidth schedule.
+ * @return the properties of the specified bandwidth schedule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BandwidthScheduleInner get(String deviceName, String name, String resourceGroupName);
+ Response getWithResponse(
+ String deviceName, String name, String resourceGroupName, Context context);
/**
* Gets the properties of the specified bandwidth schedule.
@@ -63,15 +67,13 @@ PagedIterable listByDataBoxEdgeDevice(
* @param deviceName The device name.
* @param name The bandwidth schedule 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 properties of the specified bandwidth schedule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String deviceName, String name, String resourceGroupName, Context context);
+ BandwidthScheduleInner get(String deviceName, String name, String resourceGroupName);
/**
* Creates or updates a bandwidth schedule.
@@ -83,9 +85,9 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the bandwidth schedule details.
+ * @return the {@link SyncPoller} for polling of the bandwidth schedule details.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BandwidthScheduleInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, BandwidthScheduleInner parameters);
@@ -100,9 +102,9 @@ SyncPoller, BandwidthScheduleInner> beginCrea
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the bandwidth schedule details.
+ * @return the {@link SyncPoller} for polling of the bandwidth schedule details.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BandwidthScheduleInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, BandwidthScheduleInner parameters, Context context);
@@ -148,9 +150,9 @@ BandwidthScheduleInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String deviceName, String name, String resourceGroupName);
/**
@@ -163,9 +165,9 @@ BandwidthScheduleInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String name, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/ContainersClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/ContainersClient.java
index 1122c177d346..81867cb822b3 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/ContainersClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/ContainersClient.java
@@ -24,7 +24,8 @@ public interface ContainersClient {
* @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 containers on the Data Box Edge/Gateway device.
+ * @return collection of all the containers on the Data Box Edge/Gateway device as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByStorageAccount(
@@ -40,7 +41,8 @@ PagedIterable listByStorageAccount(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return collection of all the containers on the Data Box Edge/Gateway device.
+ * @return collection of all the containers on the Data Box Edge/Gateway device as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByStorageAccount(
@@ -53,13 +55,15 @@ PagedIterable listByStorageAccount(
* @param storageAccountName The Storage Account Name.
* @param containerName The container 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 container by name.
+ * @return a container by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ContainerInner get(String deviceName, String storageAccountName, String containerName, String resourceGroupName);
+ Response getWithResponse(
+ String deviceName, String storageAccountName, String containerName, String resourceGroupName, Context context);
/**
* Gets a container by name.
@@ -68,15 +72,13 @@ PagedIterable listByStorageAccount(
* @param storageAccountName The Storage Account Name.
* @param containerName The container 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 container by name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String deviceName, String storageAccountName, String containerName, String resourceGroupName, Context context);
+ ContainerInner get(String deviceName, String storageAccountName, String containerName, String resourceGroupName);
/**
* Creates a new container or updates an existing container on the device.
@@ -89,9 +91,9 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a container on the Data Box Edge/Gateway device.
+ * @return the {@link SyncPoller} for polling of represents a container on the Data Box Edge/Gateway device.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ContainerInner> beginCreateOrUpdate(
String deviceName,
String storageAccountName,
@@ -111,9 +113,9 @@ SyncPoller, ContainerInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a container on the Data Box Edge/Gateway device.
+ * @return the {@link SyncPoller} for polling of represents a container on the Data Box Edge/Gateway device.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ContainerInner> beginCreateOrUpdate(
String deviceName,
String storageAccountName,
@@ -176,9 +178,9 @@ ContainerInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String storageAccountName, String containerName, String resourceGroupName);
@@ -193,9 +195,9 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String storageAccountName, String containerName, String resourceGroupName, Context context);
@@ -239,9 +241,9 @@ void delete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRefresh(
String deviceName, String storageAccountName, String containerName, String resourceGroupName);
@@ -256,9 +258,9 @@ SyncPoller, Void> beginRefresh(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRefresh(
String deviceName, String storageAccountName, String containerName, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DataBoxEdgeManagementClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DataBoxEdgeManagementClient.java
index d3ea0cb32538..a02f6709d6ec 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,27 @@ public interface DataBoxEdgeManagementClient {
*/
BandwidthSchedulesClient getBandwidthSchedules();
+ /**
+ * Gets the DeviceCapacityChecksClient object to access its operations.
+ *
+ * @return the DeviceCapacityChecksClient object.
+ */
+ DeviceCapacityChecksClient getDeviceCapacityChecks();
+
+ /**
+ * Gets the DeviceCapacityInfoesClient object to access its operations.
+ *
+ * @return the DeviceCapacityInfoesClient object.
+ */
+ DeviceCapacityInfoesClient getDeviceCapacityInfoes();
+
+ /**
+ * Gets the DiagnosticSettingsClient object to access its operations.
+ *
+ * @return the DiagnosticSettingsClient object.
+ */
+ DiagnosticSettingsClient getDiagnosticSettings();
+
/**
* Gets the JobsClient object to access its operations.
*
@@ -107,6 +135,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 +185,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/DeviceCapacityChecksClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DeviceCapacityChecksClient.java
new file mode 100644
index 000000000000..d91d77b877d2
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DeviceCapacityChecksClient.java
@@ -0,0 +1,85 @@
+// 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.DeviceCapacityRequestInfo;
+
+/** An instance of this class provides access to all the operations defined in DeviceCapacityChecksClient. */
+public interface DeviceCapacityChecksClient {
+ /**
+ * Posts the device capacity request info to check feasibility.
+ *
+ * @param resourceGroupName The resource group name.
+ * @param deviceName The device name.
+ * @param deviceCapacityRequestInfo The device capacity request info.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginCheckResourceCreationFeasibility(
+ String resourceGroupName, String deviceName, DeviceCapacityRequestInfo deviceCapacityRequestInfo);
+
+ /**
+ * Posts the device capacity request info to check feasibility.
+ *
+ * @param resourceGroupName The resource group name.
+ * @param deviceName The device name.
+ * @param deviceCapacityRequestInfo The device capacity request info.
+ * @param capacityName The capacity name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginCheckResourceCreationFeasibility(
+ String resourceGroupName,
+ String deviceName,
+ DeviceCapacityRequestInfo deviceCapacityRequestInfo,
+ String capacityName,
+ Context context);
+
+ /**
+ * Posts the device capacity request info to check feasibility.
+ *
+ * @param resourceGroupName The resource group name.
+ * @param deviceName The device name.
+ * @param deviceCapacityRequestInfo The device capacity request info.
+ * @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 checkResourceCreationFeasibility(
+ String resourceGroupName, String deviceName, DeviceCapacityRequestInfo deviceCapacityRequestInfo);
+
+ /**
+ * Posts the device capacity request info to check feasibility.
+ *
+ * @param resourceGroupName The resource group name.
+ * @param deviceName The device name.
+ * @param deviceCapacityRequestInfo The device capacity request info.
+ * @param capacityName The capacity 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 checkResourceCreationFeasibility(
+ String resourceGroupName,
+ String deviceName,
+ DeviceCapacityRequestInfo deviceCapacityRequestInfo,
+ String capacityName,
+ Context context);
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DeviceCapacityInfoesClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DeviceCapacityInfoesClient.java
new file mode 100644
index 000000000000..a54fb39b02c2
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DeviceCapacityInfoesClient.java
@@ -0,0 +1,42 @@
+// 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.util.Context;
+import com.azure.resourcemanager.databoxedge.fluent.models.DeviceCapacityInfoInner;
+
+/** An instance of this class provides access to all the operations defined in DeviceCapacityInfoesClient. */
+public interface DeviceCapacityInfoesClient {
+ /**
+ * Gets the properties of the specified device capacity info.
+ *
+ * @param resourceGroupName The resource group name.
+ * @param deviceName The device 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 properties of the specified device capacity info along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDeviceCapacityInfoWithResponse(
+ String resourceGroupName, String deviceName, Context context);
+
+ /**
+ * Gets the properties of the specified device capacity info.
+ *
+ * @param resourceGroupName The resource group name.
+ * @param deviceName The device 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 properties of the specified device capacity info.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeviceCapacityInfoInner getDeviceCapacityInfo(String resourceGroupName, String deviceName);
+}
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 44aa91941334..5407da2f8a0e 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;
@@ -27,7 +29,8 @@ public interface DevicesClient {
*
* @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 all the Data Box Edge/Data Box Gateway devices in a subscription.
+ * @return all the Data Box Edge/Data Box Gateway devices in a subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -41,7 +44,8 @@ public interface DevicesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the Data Box Edge/Data Box Gateway devices in a subscription.
+ * @return all the Data Box Edge/Data Box Gateway devices in a subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String expand, Context context);
@@ -53,7 +57,8 @@ public interface DevicesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the Data Box Edge/Data Box Gateway devices in a resource group.
+ * @return all the Data Box Edge/Data Box Gateway devices in a resource group as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -68,24 +73,12 @@ public interface DevicesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the Data Box Edge/Data Box Gateway devices in a resource group.
+ * @return all the Data Box Edge/Data Box Gateway devices in a resource group as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, String expand, Context context);
- /**
- * Gets the properties of the Data Box Edge/Data Box Gateway device.
- *
- * @param resourceGroupName The resource group name.
- * @param deviceName The device 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 properties of the Data Box Edge/Data Box Gateway device.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DataBoxEdgeDeviceInner getByResourceGroup(String resourceGroupName, String deviceName);
-
/**
* Gets the properties of the Data Box Edge/Data Box Gateway device.
*
@@ -95,26 +88,24 @@ public interface DevicesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the properties of the Data Box Edge/Data Box Gateway device.
+ * @return the properties of the Data Box Edge/Data Box Gateway device along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
String resourceGroupName, String deviceName, Context context);
/**
- * Creates or updates a Data Box Edge/Data Box Gateway resource.
+ * Gets the properties of the Data Box Edge/Data Box Gateway device.
*
- * @param deviceName The device name.
* @param resourceGroupName The resource group name.
- * @param dataBoxEdgeDevice The resource object.
+ * @param deviceName The device 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 Data Box Edge/Gateway device.
+ * @return the properties of the Data Box Edge/Data Box Gateway device.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, DataBoxEdgeDeviceInner> beginCreateOrUpdate(
- String deviceName, String resourceGroupName, DataBoxEdgeDeviceInner dataBoxEdgeDevice);
+ DataBoxEdgeDeviceInner getByResourceGroup(String resourceGroupName, String deviceName);
/**
* Creates or updates a Data Box Edge/Data Box Gateway resource.
@@ -126,10 +117,10 @@ SyncPoller, DataBoxEdgeDeviceInner> beginCrea
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Data Box Edge/Gateway device.
+ * @return the Data Box Edge/Gateway device along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, DataBoxEdgeDeviceInner> beginCreateOrUpdate(
+ Response createOrUpdateWithResponse(
String deviceName, String resourceGroupName, DataBoxEdgeDeviceInner dataBoxEdgeDevice, Context context);
/**
@@ -147,22 +138,6 @@ SyncPoller, DataBoxEdgeDeviceInner> beginCrea
DataBoxEdgeDeviceInner createOrUpdate(
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)
- DataBoxEdgeDeviceInner createOrUpdate(
- String deviceName, String resourceGroupName, DataBoxEdgeDeviceInner dataBoxEdgeDevice, Context context);
-
/**
* Deletes the Data Box Edge/Data Box Gateway device.
*
@@ -171,9 +146,9 @@ DataBoxEdgeDeviceInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String deviceName);
/**
@@ -185,9 +160,9 @@ DataBoxEdgeDeviceInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String deviceName, Context context);
/**
@@ -221,13 +196,15 @@ DataBoxEdgeDeviceInner createOrUpdate(
* @param deviceName The device name.
* @param resourceGroupName The resource group name.
* @param parameters The resource parameters.
+ * @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.
+ * @return the Data Box Edge/Gateway device along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DataBoxEdgeDeviceInner update(String deviceName, String resourceGroupName, DataBoxEdgeDevicePatch parameters);
+ Response updateWithResponse(
+ String deviceName, String resourceGroupName, DataBoxEdgeDevicePatch parameters, Context context);
/**
* Modifies a Data Box Edge/Data Box Gateway resource.
@@ -235,15 +212,13 @@ DataBoxEdgeDeviceInner createOrUpdate(
* @param deviceName The device name.
* @param resourceGroupName The resource group name.
* @param parameters The resource parameters.
- * @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)
- Response updateWithResponse(
- String deviceName, String resourceGroupName, DataBoxEdgeDevicePatch parameters, Context context);
+ DataBoxEdgeDeviceInner update(String deviceName, String resourceGroupName, DataBoxEdgeDevicePatch parameters);
/**
* Downloads the updates on a Data Box Edge/Data Box Gateway device.
@@ -253,9 +228,9 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDownloadUpdates(String deviceName, String resourceGroupName);
/**
@@ -267,9 +242,9 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDownloadUpdates(
String deviceName, String resourceGroupName, Context context);
@@ -299,20 +274,35 @@ 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.
+ * @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.
+ * @return used in activation key generation flow along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DataBoxEdgeDeviceExtendedInfoInner getExtendedInformation(String deviceName, String resourceGroupName);
+ Response generateCertificateWithResponse(
+ 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 used in activation key generation flow.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenerateCertResponseInner generateCertificate(String deviceName, String resourceGroupName);
+
+ /**
+ * 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,23 +310,37 @@ SyncPoller, Void> beginDownloadUpdates(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return additional information for the specified Data Box Edge/Data Box Gateway device.
+ * @return additional information for the specified Azure Stack Edge/Data Box Gateway device along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getExtendedInformationWithResponse(
String deviceName, String resourceGroupName, Context context);
/**
- * Installs the updates on the 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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return additional information for the specified Azure Stack Edge/Data Box Gateway device.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
+ DataBoxEdgeDeviceExtendedInfoInner getExtendedInformation(String deviceName, String resourceGroupName);
+
+ /**
+ * Installs the updates on the 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginInstallUpdates(String deviceName, String resourceGroupName);
/**
@@ -348,9 +352,9 @@ Response getExtendedInformationWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginInstallUpdates(
String deviceName, String resourceGroupName, Context context);
@@ -384,28 +388,28 @@ SyncPoller, Void> beginInstallUpdates(
*
* @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 network settings of the specified Data Box Edge/Data Box Gateway device.
+ * @return the network settings of the specified Data Box Edge/Data Box Gateway device along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- NetworkSettingsInner getNetworkSettings(String deviceName, String resourceGroupName);
+ Response getNetworkSettingsWithResponse(
+ String deviceName, String resourceGroupName, Context context);
/**
* Gets the network 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 network settings of the specified Data Box Edge/Data Box Gateway device.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getNetworkSettingsWithResponse(
- String deviceName, String resourceGroupName, Context context);
+ NetworkSettingsInner getNetworkSettings(String deviceName, String resourceGroupName);
/**
* Scans for updates on a Data Box Edge/Data Box Gateway device.
@@ -415,9 +419,9 @@ Response getNetworkSettingsWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginScanForUpdates(String deviceName, String resourceGroupName);
/**
@@ -429,9 +433,9 @@ Response getNetworkSettingsWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginScanForUpdates(
String deviceName, String resourceGroupName, Context context);
@@ -469,9 +473,9 @@ SyncPoller, Void> beginScanForUpdates(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginCreateOrUpdateSecuritySettings(
String deviceName, String resourceGroupName, SecuritySettings securitySettings);
@@ -485,9 +489,9 @@ SyncPoller, Void> beginCreateOrUpdateSecuritySettings(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginCreateOrUpdateSecuritySettings(
String deviceName, String resourceGroupName, SecuritySettings securitySettings, Context context);
@@ -520,18 +524,36 @@ void createOrUpdateSecuritySettings(
String deviceName, String resourceGroupName, SecuritySettings securitySettings, 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.
+ * 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 information about the availability of updates based on the last scan of the device.
+ * @return additional information for the specified Data Box Edge/Data Box Gateway device along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- UpdateSummaryInner getUpdateSummary(String deviceName, String resourceGroupName);
+ Response updateExtendedInformationWithResponse(
+ String deviceName, String resourceGroupName, DataBoxEdgeDeviceExtendedInfoPatch parameters, 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 information about the availability of updates based on the last scan of the device. It also gets information
@@ -543,26 +565,26 @@ void createOrUpdateSecuritySettings(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the availability of updates based on the last scan of the device.
+ * @return information about the availability of updates based on the last scan of the device along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getUpdateSummaryWithResponse(
String deviceName, String resourceGroupName, Context context);
/**
- * Uploads registration certificate for the device.
+ * 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.
*
* @param deviceName The device name.
* @param resourceGroupName The resource group name.
- * @param parameters The upload certificate request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the upload registration certificate response.
+ * @return information about the availability of updates based on the last scan of the device.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- UploadCertificateResponseInner uploadCertificate(
- String deviceName, String resourceGroupName, UploadCertificateRequest parameters);
+ UpdateSummaryInner getUpdateSummary(String deviceName, String resourceGroupName);
/**
* Uploads registration certificate for the device.
@@ -574,9 +596,24 @@ UploadCertificateResponseInner uploadCertificate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the upload registration certificate response.
+ * @return the upload registration certificate response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response uploadCertificateWithResponse(
String deviceName, String resourceGroupName, UploadCertificateRequest parameters, Context context);
+
+ /**
+ * Uploads registration certificate for the device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param parameters The upload certificate request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the upload registration certificate response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ UploadCertificateResponseInner uploadCertificate(
+ String deviceName, String resourceGroupName, UploadCertificateRequest parameters);
}
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 000000000000..96cd838bdd25
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DiagnosticSettingsClient.java
@@ -0,0 +1,225 @@
+// 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the proactive log collection settings of the specified Data Box Edge/Data Box Gateway device along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDiagnosticProactiveLogCollectionSettingsWithResponse(
+ String deviceName, String resourceGroupName, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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 {@link SyncPoller} for polling of the diagnostic proactive log collection settings of a device.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DiagnosticProactiveLogCollectionSettingsInner>
+ beginUpdateDiagnosticProactiveLogCollectionSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticProactiveLogCollectionSettingsInner proactiveLogCollectionSettings);
+
+ /**
+ * Updates the proactive log collection settings on a Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param proactiveLogCollectionSettings The proactive log collection settings.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the diagnostic proactive log collection settings of a device.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DiagnosticProactiveLogCollectionSettingsInner>
+ beginUpdateDiagnosticProactiveLogCollectionSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticProactiveLogCollectionSettingsInner proactiveLogCollectionSettings,
+ Context context);
+
+ /**
+ * Updates the proactive log collection settings on a Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param proactiveLogCollectionSettings The proactive log collection settings.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the diagnostic proactive log collection settings of a device.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticProactiveLogCollectionSettingsInner updateDiagnosticProactiveLogCollectionSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticProactiveLogCollectionSettingsInner proactiveLogCollectionSettings);
+
+ /**
+ * Updates the proactive log collection settings on a Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param proactiveLogCollectionSettings The proactive log collection settings.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the diagnostic proactive log collection settings of a device.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticProactiveLogCollectionSettingsInner updateDiagnosticProactiveLogCollectionSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticProactiveLogCollectionSettingsInner proactiveLogCollectionSettings,
+ Context context);
+
+ /**
+ * Gets the diagnostic remote support settings of the specified Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the diagnostic remote support settings of the specified Data Box Edge/Data Box Gateway device along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDiagnosticRemoteSupportSettingsWithResponse(
+ String deviceName, String resourceGroupName, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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 {@link SyncPoller} for polling of the remote support settings of a device.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DiagnosticRemoteSupportSettingsInner>
+ beginUpdateDiagnosticRemoteSupportSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticRemoteSupportSettingsInner diagnosticRemoteSupportSettings);
+
+ /**
+ * Updates the diagnostic remote support settings on a Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param diagnosticRemoteSupportSettings The diagnostic remote support settings.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the remote support settings of a device.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DiagnosticRemoteSupportSettingsInner>
+ beginUpdateDiagnosticRemoteSupportSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticRemoteSupportSettingsInner diagnosticRemoteSupportSettings,
+ Context context);
+
+ /**
+ * Updates the diagnostic remote support settings on a Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param diagnosticRemoteSupportSettings The diagnostic remote support settings.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the remote support settings of a device.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticRemoteSupportSettingsInner updateDiagnosticRemoteSupportSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticRemoteSupportSettingsInner diagnosticRemoteSupportSettings);
+
+ /**
+ * Updates the diagnostic remote support settings on a Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param diagnosticRemoteSupportSettings The diagnostic remote support settings.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the remote support settings of a device.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticRemoteSupportSettingsInner updateDiagnosticRemoteSupportSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticRemoteSupportSettingsInner diagnosticRemoteSupportSettings,
+ Context context);
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/JobsClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/JobsClient.java
index 640570ef6745..4cfd0c95a398 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/JobsClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/JobsClient.java
@@ -18,13 +18,14 @@ public interface JobsClient {
* @param deviceName The device name.
* @param name The job 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 details of a specified job on a Data Box Edge/Data Box Gateway device.
+ * @return the details of a specified job on a Data Box Edge/Data Box Gateway device along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- JobInner get(String deviceName, String name, String resourceGroupName);
+ Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
/**
* Gets the details of a specified job on a Data Box Edge/Data Box Gateway device.
@@ -32,12 +33,11 @@ public interface JobsClient {
* @param deviceName The device name.
* @param name The job 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 details of a specified job on a Data Box Edge/Data Box Gateway device.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
+ JobInner get(String deviceName, String name, String resourceGroupName);
}
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 000000000000..b4f87a95515d
--- /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 as paginated response with {@link PagedIterable}.
+ */
+ @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 as paginated response with {@link PagedIterable}.
+ */
+ @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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a metric configuration of a role along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String deviceName, String roleName, String resourceGroupName, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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 {@link SyncPoller} for polling of the metric setting details for the role.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MonitoringMetricConfigurationInner> beginCreateOrUpdate(
+ String deviceName,
+ String roleName,
+ String resourceGroupName,
+ MonitoringMetricConfigurationInner monitoringMetricConfiguration);
+
+ /**
+ * Creates a new metric configuration or updates an existing one for a role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @param monitoringMetricConfiguration The metric configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the metric setting details for the role.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MonitoringMetricConfigurationInner> beginCreateOrUpdate(
+ String deviceName,
+ String roleName,
+ String resourceGroupName,
+ MonitoringMetricConfigurationInner monitoringMetricConfiguration,
+ Context context);
+
+ /**
+ * Creates a new metric configuration or updates an existing one for a role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @param monitoringMetricConfiguration The metric configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the metric setting details for the role.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MonitoringMetricConfigurationInner createOrUpdate(
+ String deviceName,
+ String roleName,
+ String resourceGroupName,
+ MonitoringMetricConfigurationInner monitoringMetricConfiguration);
+
+ /**
+ * Creates a new metric configuration or updates an existing one for a role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @param monitoringMetricConfiguration The metric configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the metric setting details for the role.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MonitoringMetricConfigurationInner createOrUpdate(
+ String deviceName,
+ String roleName,
+ String resourceGroupName,
+ MonitoringMetricConfigurationInner monitoringMetricConfiguration,
+ Context context);
+
+ /**
+ * deletes a new metric configuration for a role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String deviceName, String roleName, String resourceGroupName);
+
+ /**
+ * deletes a new metric configuration for a role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String deviceName, String roleName, String resourceGroupName, Context context);
+
+ /**
+ * deletes a new metric configuration for a role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String deviceName, String roleName, String resourceGroupName);
+
+ /**
+ * deletes a new metric configuration for a role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String deviceName, String roleName, String resourceGroupName, Context context);
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/NodesClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/NodesClient.java
index 47241df8e08d..b5541870f215 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/NodesClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/NodesClient.java
@@ -20,7 +20,8 @@ public interface NodesClient {
* @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 all the nodes currently configured under this Data Box Edge device.
+ * @return all the nodes currently configured under this Data Box Edge device as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDataBoxEdgeDevice(String deviceName, String resourceGroupName);
@@ -34,7 +35,8 @@ public interface NodesClient {
* @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 all the nodes currently configured under this Data Box Edge device.
+ * @return all the nodes currently configured under this Data Box Edge device as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDataBoxEdgeDevice(String deviceName, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/OperationsClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/OperationsClient.java
index 04b9c37132d4..5caa98526a2a 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/OperationsClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/OperationsClient.java
@@ -17,7 +17,8 @@ public interface OperationsClient {
*
* @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 list of operations used for the discovery of available provider operations.
+ * @return the list of operations used for the discovery of available provider operations as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +30,8 @@ public interface OperationsClient {
* @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 list of operations used for the discovery of available provider operations.
+ * @return the list of operations used for the discovery of available provider operations as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/OperationsStatusClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/OperationsStatusClient.java
index 1cc20e96c622..2d3f3f509553 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/OperationsStatusClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/OperationsStatusClient.java
@@ -18,13 +18,14 @@ public interface OperationsStatusClient {
* @param deviceName The device name.
* @param name The job 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 details of a specified job on a Data Box Edge/Data Box Gateway device.
+ * @return the details of a specified job on a Data Box Edge/Data Box Gateway device along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- JobInner get(String deviceName, String name, String resourceGroupName);
+ Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
/**
* Gets the details of a specified job on a Data Box Edge/Data Box Gateway device.
@@ -32,12 +33,11 @@ public interface OperationsStatusClient {
* @param deviceName The device name.
* @param name The job 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 details of a specified job on a Data Box Edge/Data Box Gateway device.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
+ JobInner get(String deviceName, String name, String resourceGroupName);
}
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 6f7bc753adbd..35aada6004fd 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. */
@@ -23,7 +24,7 @@ public interface OrdersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of order entities.
+ * @return list of order entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDataBoxEdgeDevice(String deviceName, String resourceGroupName);
@@ -37,7 +38,7 @@ public interface OrdersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of order entities.
+ * @return list of order entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDataBoxEdgeDevice(String deviceName, String resourceGroupName, Context context);
@@ -47,27 +48,27 @@ public interface OrdersClient {
*
* @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 a specific order by name.
+ * @return a specific order by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OrderInner get(String deviceName, String resourceGroupName);
+ Response getWithResponse(String deviceName, String resourceGroupName, Context context);
/**
* Gets a specific order by name.
*
* @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 a specific order by name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String deviceName, String resourceGroupName, Context context);
+ OrderInner get(String deviceName, String resourceGroupName);
/**
* Creates or updates an order.
@@ -78,9 +79,9 @@ public interface OrdersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the order details.
+ * @return the {@link SyncPoller} for polling of the order details.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OrderInner> beginCreateOrUpdate(
String deviceName, String resourceGroupName, OrderInner order);
@@ -94,9 +95,9 @@ SyncPoller, OrderInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the order details.
+ * @return the {@link SyncPoller} for polling of the order details.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OrderInner> beginCreateOrUpdate(
String deviceName, String resourceGroupName, OrderInner order, Context context);
@@ -137,9 +138,9 @@ SyncPoller, OrderInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String deviceName, String resourceGroupName);
/**
@@ -151,9 +152,9 @@ SyncPoller, OrderInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String deviceName, String resourceGroupName, Context context);
/**
@@ -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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the DCAccess Code along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listDCAccessCodeWithResponse(
+ String deviceName, String resourceGroupName, Context context);
+
+ /**
+ * 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);
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/RolesClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/RolesClient.java
index cef88cc8ea6e..db47c1f33c19 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/RolesClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/RolesClient.java
@@ -23,7 +23,7 @@ public interface RolesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return collection of all the roles on the Data Box Edge device.
+ * @return collection of all the roles on the Data Box Edge device as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDataBoxEdgeDevice(String deviceName, String resourceGroupName);
@@ -37,7 +37,7 @@ public interface RolesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return collection of all the roles on the Data Box Edge device.
+ * @return collection of all the roles on the Data Box Edge device as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDataBoxEdgeDevice(String deviceName, String resourceGroupName, Context context);
@@ -48,13 +48,14 @@ public interface RolesClient {
* @param deviceName The device name.
* @param name 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 specific role by name.
+ * @return a specific role by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- RoleInner get(String deviceName, String name, String resourceGroupName);
+ Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
/**
* Gets a specific role by name.
@@ -62,14 +63,13 @@ public interface RolesClient {
* @param deviceName The device name.
* @param name 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 specific role by name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
+ RoleInner get(String deviceName, String name, String resourceGroupName);
/**
* Create or update a role.
@@ -81,9 +81,9 @@ public interface RolesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return compute role.
+ * @return the {@link SyncPoller} for polling of compute role.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, RoleInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, RoleInner role);
@@ -98,9 +98,9 @@ SyncPoller, RoleInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return compute role.
+ * @return the {@link SyncPoller} for polling of compute role.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, RoleInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, RoleInner role, Context context);
@@ -144,9 +144,9 @@ SyncPoller, RoleInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String deviceName, String name, String resourceGroupName);
/**
@@ -159,9 +159,9 @@ SyncPoller, RoleInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String name, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/SharesClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/SharesClient.java
index e1a33e0771fc..a9ac76ad67b2 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/SharesClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/SharesClient.java
@@ -23,7 +23,8 @@ public interface SharesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return collection of all the shares on the Data Box Edge/Gateway device.
+ * @return collection of all the shares on the Data Box Edge/Gateway device as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDataBoxEdgeDevice(String deviceName, String resourceGroupName);
@@ -37,7 +38,8 @@ public interface SharesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return collection of all the shares on the Data Box Edge/Gateway device.
+ * @return collection of all the shares on the Data Box Edge/Gateway device as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDataBoxEdgeDevice(String deviceName, String resourceGroupName, Context context);
@@ -48,13 +50,14 @@ public interface SharesClient {
* @param deviceName The device name.
* @param name The share 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 share by name.
+ * @return a share by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ShareInner get(String deviceName, String name, String resourceGroupName);
+ Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
/**
* Gets a share by name.
@@ -62,14 +65,13 @@ public interface SharesClient {
* @param deviceName The device name.
* @param name The share 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 share by name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
+ ShareInner get(String deviceName, String name, String resourceGroupName);
/**
* Creates a new share or updates an existing share on the device.
@@ -81,9 +83,9 @@ public interface SharesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a share on the Data Box Edge/Gateway device.
+ * @return the {@link SyncPoller} for polling of represents a share on the Data Box Edge/Gateway device.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ShareInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, ShareInner share);
@@ -98,9 +100,9 @@ SyncPoller, ShareInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a share on the Data Box Edge/Gateway device.
+ * @return the {@link SyncPoller} for polling of represents a share on the Data Box Edge/Gateway device.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ShareInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, ShareInner share, Context context);
@@ -145,9 +147,9 @@ ShareInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String deviceName, String name, String resourceGroupName);
/**
@@ -160,9 +162,9 @@ ShareInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String name, String resourceGroupName, Context context);
@@ -202,9 +204,9 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRefresh(String deviceName, String name, String resourceGroupName);
/**
@@ -217,9 +219,9 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRefresh(
String deviceName, String name, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/StorageAccountCredentialsClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/StorageAccountCredentialsClient.java
index 435bc27ffad7..2133247d1437 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/StorageAccountCredentialsClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/StorageAccountCredentialsClient.java
@@ -23,7 +23,8 @@ public interface StorageAccountCredentialsClient {
* @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 all the storage account credentials in a Data Box Edge/Data Box Gateway device.
+ * @return all the storage account credentials in a Data Box Edge/Data Box Gateway device as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDataBoxEdgeDevice(String deviceName, String resourceGroupName);
@@ -37,7 +38,8 @@ public interface StorageAccountCredentialsClient {
* @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 all the storage account credentials in a Data Box Edge/Data Box Gateway device.
+ * @return all the storage account credentials in a Data Box Edge/Data Box Gateway device as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDataBoxEdgeDevice(
@@ -49,13 +51,15 @@ PagedIterable listByDataBoxEdgeDevice(
* @param deviceName The device name.
* @param name The storage account credential 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 properties of the specified storage account credential.
+ * @return the properties of the specified storage account credential along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- StorageAccountCredentialInner get(String deviceName, String name, String resourceGroupName);
+ Response getWithResponse(
+ String deviceName, String name, String resourceGroupName, Context context);
/**
* Gets the properties of the specified storage account credential.
@@ -63,15 +67,13 @@ PagedIterable listByDataBoxEdgeDevice(
* @param deviceName The device name.
* @param name The storage account credential 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 properties of the specified storage account credential.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String deviceName, String name, String resourceGroupName, Context context);
+ StorageAccountCredentialInner get(String deviceName, String name, String resourceGroupName);
/**
* Creates or updates the storage account credential.
@@ -83,9 +85,9 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the storage account credential.
+ * @return the {@link SyncPoller} for polling of the storage account credential.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, StorageAccountCredentialInner> beginCreateOrUpdate(
String deviceName,
String name,
@@ -103,9 +105,9 @@ SyncPoller, StorageAccountCredentialIn
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the storage account credential.
+ * @return the {@link SyncPoller} for polling of the storage account credential.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, StorageAccountCredentialInner> beginCreateOrUpdate(
String deviceName,
String name,
@@ -162,9 +164,9 @@ StorageAccountCredentialInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String deviceName, String name, String resourceGroupName);
/**
@@ -177,9 +179,9 @@ StorageAccountCredentialInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String name, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/StorageAccountsClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/StorageAccountsClient.java
index 9badd639ba64..4a7931a57d2c 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,20 +16,21 @@
/** 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.
* @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 Storage Accounts on the Data Box Edge/Gateway device.
+ * @return collection of all the Storage Accounts on the Data Box Edge/Gateway device as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
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.
@@ -37,7 +38,8 @@ public interface StorageAccountsClient {
* @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 Storage Accounts on the Data Box Edge/Gateway device.
+ * @return collection of all the Storage Accounts on the Data Box Edge/Gateway device as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDataBoxEdgeDevice(
@@ -49,13 +51,15 @@ PagedIterable listByDataBoxEdgeDevice(
* @param deviceName The device name.
* @param storageAccountName The storage account 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 StorageAccount by name.
+ * @return a StorageAccount by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- StorageAccountInner get(String deviceName, String storageAccountName, String resourceGroupName);
+ Response getWithResponse(
+ String deviceName, String storageAccountName, String resourceGroupName, Context context);
/**
* Gets a StorageAccount by name.
@@ -63,15 +67,13 @@ PagedIterable listByDataBoxEdgeDevice(
* @param deviceName The device name.
* @param storageAccountName The storage account 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 StorageAccount by name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String deviceName, String storageAccountName, String resourceGroupName, Context context);
+ StorageAccountInner get(String deviceName, String storageAccountName, String resourceGroupName);
/**
* Creates a new StorageAccount or updates an existing StorageAccount on the device.
@@ -83,9 +85,9 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a Storage Account on the Data Box Edge/Gateway device.
+ * @return the {@link SyncPoller} for polling of represents a Storage Account on the Data Box Edge/Gateway device.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, StorageAccountInner> beginCreateOrUpdate(
String deviceName, String storageAccountName, String resourceGroupName, StorageAccountInner storageAccount);
@@ -100,9 +102,9 @@ SyncPoller, StorageAccountInner> beginCreateOrUp
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a Storage Account on the Data Box Edge/Gateway device.
+ * @return the {@link SyncPoller} for polling of represents a Storage Account on the Data Box Edge/Gateway device.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, StorageAccountInner> beginCreateOrUpdate(
String deviceName,
String storageAccountName,
@@ -156,9 +158,9 @@ StorageAccountInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String storageAccountName, String resourceGroupName);
@@ -172,9 +174,9 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String storageAccountName, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/SupportPackagesClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/SupportPackagesClient.java
new file mode 100644
index 000000000000..c2a6d793e7a5
--- /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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginTriggerSupportPackage(
+ String deviceName, String resourceGroupName, TriggerSupportPackageRequest triggerSupportPackageRequest);
+
+ /**
+ * Triggers support package on the device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param triggerSupportPackageRequest The trigger support package request object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginTriggerSupportPackage(
+ String deviceName,
+ String resourceGroupName,
+ TriggerSupportPackageRequest triggerSupportPackageRequest,
+ Context context);
+
+ /**
+ * Triggers support package on the device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param triggerSupportPackageRequest The trigger support package request object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void triggerSupportPackage(
+ String deviceName, String resourceGroupName, TriggerSupportPackageRequest triggerSupportPackageRequest);
+
+ /**
+ * Triggers support package on the device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param triggerSupportPackageRequest The trigger support package request object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void triggerSupportPackage(
+ String deviceName,
+ String resourceGroupName,
+ TriggerSupportPackageRequest triggerSupportPackageRequest,
+ Context context);
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/TriggersClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/TriggersClient.java
index 7eb923093069..d6d0db48bae5 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/TriggersClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/TriggersClient.java
@@ -23,7 +23,7 @@ public interface TriggersClient {
* @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 trigger on the data box edge device.
+ * @return collection of all trigger on the data box edge device as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDataBoxEdgeDevice(String deviceName, String resourceGroupName);
@@ -38,7 +38,7 @@ public interface TriggersClient {
* @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 trigger on the data box edge device.
+ * @return collection of all trigger on the data box edge device as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDataBoxEdgeDevice(
@@ -50,13 +50,14 @@ PagedIterable listByDataBoxEdgeDevice(
* @param deviceName The device name.
* @param name The trigger 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 trigger by name.
+ * @return a specific trigger by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- TriggerInner get(String deviceName, String name, String resourceGroupName);
+ Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
/**
* Get a specific trigger by name.
@@ -64,14 +65,13 @@ PagedIterable listByDataBoxEdgeDevice(
* @param deviceName The device name.
* @param name The trigger 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 trigger by name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
+ TriggerInner get(String deviceName, String name, String resourceGroupName);
/**
* Creates or updates a trigger.
@@ -83,9 +83,9 @@ PagedIterable listByDataBoxEdgeDevice(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return trigger details.
+ * @return the {@link SyncPoller} for polling of trigger details.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, TriggerInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, TriggerInner trigger);
@@ -100,9 +100,9 @@ SyncPoller, TriggerInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return trigger details.
+ * @return the {@link SyncPoller} for polling of trigger details.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, TriggerInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, TriggerInner trigger, Context context);
@@ -147,9 +147,9 @@ TriggerInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String deviceName, String name, String resourceGroupName);
/**
@@ -162,9 +162,9 @@ TriggerInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String name, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/UsersClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/UsersClient.java
index 6fc2a24cfbdc..ee130ce579c5 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
@@ -23,7 +23,8 @@ public interface UsersClient {
* @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 all the users registered on a Data Box Edge/Data Box Gateway device.
+ * @return all the users registered on a Data Box Edge/Data Box Gateway device as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDataBoxEdgeDevice(String deviceName, String resourceGroupName);
@@ -33,12 +34,13 @@ 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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the users registered on a Data Box Edge/Data Box Gateway device.
+ * @return all the users registered on a Data Box Edge/Data Box Gateway device as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDataBoxEdgeDevice(
@@ -50,13 +52,14 @@ PagedIterable listByDataBoxEdgeDevice(
* @param deviceName The device name.
* @param name The user 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 properties of the specified user.
+ * @return the properties of the specified user along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- UserInner get(String deviceName, String name, String resourceGroupName);
+ Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
/**
* Gets the properties of the specified user.
@@ -64,14 +67,13 @@ PagedIterable listByDataBoxEdgeDevice(
* @param deviceName The device name.
* @param name The user 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 properties of the specified user.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
+ UserInner get(String deviceName, String name, String resourceGroupName);
/**
* Creates a new user or updates an existing user's information on a Data Box Edge/Data Box Gateway device.
@@ -83,9 +85,10 @@ PagedIterable listByDataBoxEdgeDevice(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a user who has access to one or more shares on the Data Box Edge/Gateway device.
+ * @return the {@link SyncPoller} for polling of represents a user who has access to one or more shares on the Data
+ * Box Edge/Gateway device.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, UserInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, UserInner user);
@@ -100,9 +103,10 @@ SyncPoller, UserInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a user who has access to one or more shares on the Data Box Edge/Gateway device.
+ * @return the {@link SyncPoller} for polling of represents a user who has access to one or more shares on the Data
+ * Box Edge/Gateway device.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, UserInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, UserInner user, Context context);
@@ -146,9 +150,9 @@ SyncPoller, UserInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String deviceName, String name, String resourceGroupName);
/**
@@ -161,9 +165,9 @@ SyncPoller, UserInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String name, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/AddonInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/AddonInner.java
new file mode 100644
index 000000000000..c91f1674a4fa
--- /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.resourcemanager.databoxedge.models.ArcAddon;
+import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
+import com.azure.resourcemanager.databoxedge.models.IoTAddon;
+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 {
+ /*
+ * Metadata pertaining to creation and last modification of Addon
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of AddonInner class. */
+ public AddonInner() {
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of Addon.
+ *
+ * @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 1cf1a3fc5ecc..adb9454c37f9 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/AlertInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/AlertInner.java
@@ -5,63 +5,50 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.annotation.JsonFlatten;
-import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.management.SystemData;
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.JsonProperty;
import java.time.OffsetDateTime;
import java.util.Map;
/** Alert on the data box edge/gateway device. */
-@JsonFlatten
@Immutable
-public class AlertInner extends ArmBaseModel {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AlertInner.class);
-
+public final class AlertInner extends ArmBaseModel {
/*
- * Alert title.
+ * Properties of alert.
*/
- @JsonProperty(value = "properties.title", access = JsonProperty.Access.WRITE_ONLY)
- private String title;
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private AlertProperties innerProperties;
/*
- * Alert type.
+ * Metadata pertaining to creation and last modification of Alert
*/
- @JsonProperty(value = "properties.alertType", access = JsonProperty.Access.WRITE_ONLY)
- private String alertType;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
- /*
- * UTC time when the alert appeared.
- */
- @JsonProperty(value = "properties.appearedAtDateTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime appearedAtDateTime;
-
- /*
- * Alert recommendation.
- */
- @JsonProperty(value = "properties.recommendation", access = JsonProperty.Access.WRITE_ONLY)
- private String recommendation;
-
- /*
- * Severity of the alert.
- */
- @JsonProperty(value = "properties.severity", access = JsonProperty.Access.WRITE_ONLY)
- private AlertSeverity severity;
+ /** Creates an instance of AlertInner class. */
+ public AlertInner() {
+ }
- /*
- * Error details of the alert.
+ /**
+ * Get the innerProperties property: Properties of alert.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.errorDetails", access = JsonProperty.Access.WRITE_ONLY)
- private AlertErrorDetails errorDetails;
+ private AlertProperties innerProperties() {
+ return this.innerProperties;
+ }
- /*
- * Alert details.
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of Alert.
+ *
+ * @return the systemData value.
*/
- @JsonProperty(value = "properties.detailedInformation", access = JsonProperty.Access.WRITE_ONLY)
- private Map detailedInformation;
+ public SystemData systemData() {
+ return this.systemData;
+ }
/**
* Get the title property: Alert title.
@@ -69,7 +56,7 @@ public class AlertInner extends ArmBaseModel {
* @return the title value.
*/
public String title() {
- return this.title;
+ return this.innerProperties() == null ? null : this.innerProperties().title();
}
/**
@@ -78,7 +65,7 @@ public String title() {
* @return the alertType value.
*/
public String alertType() {
- return this.alertType;
+ return this.innerProperties() == null ? null : this.innerProperties().alertType();
}
/**
@@ -87,7 +74,7 @@ public String alertType() {
* @return the appearedAtDateTime value.
*/
public OffsetDateTime appearedAtDateTime() {
- return this.appearedAtDateTime;
+ return this.innerProperties() == null ? null : this.innerProperties().appearedAtDateTime();
}
/**
@@ -96,7 +83,7 @@ public OffsetDateTime appearedAtDateTime() {
* @return the recommendation value.
*/
public String recommendation() {
- return this.recommendation;
+ return this.innerProperties() == null ? null : this.innerProperties().recommendation();
}
/**
@@ -105,7 +92,7 @@ public String recommendation() {
* @return the severity value.
*/
public AlertSeverity severity() {
- return this.severity;
+ return this.innerProperties() == null ? null : this.innerProperties().severity();
}
/**
@@ -114,7 +101,7 @@ public AlertSeverity severity() {
* @return the errorDetails value.
*/
public AlertErrorDetails errorDetails() {
- return this.errorDetails;
+ return this.innerProperties() == null ? null : this.innerProperties().errorDetails();
}
/**
@@ -123,7 +110,7 @@ public AlertErrorDetails errorDetails() {
* @return the detailedInformation value.
*/
public Map detailedInformation() {
- return this.detailedInformation;
+ return this.innerProperties() == null ? null : this.innerProperties().detailedInformation();
}
/**
@@ -134,8 +121,8 @@ public Map detailedInformation() {
@Override
public void validate() {
super.validate();
- if (errorDetails() != null) {
- errorDetails().validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/AlertProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/AlertProperties.java
new file mode 100644
index 000000000000..fac40e0bb5ef
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/AlertProperties.java
@@ -0,0 +1,138 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.resourcemanager.databoxedge.models.AlertErrorDetails;
+import com.azure.resourcemanager.databoxedge.models.AlertSeverity;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.Map;
+
+/** Properties of alert. */
+@Immutable
+public final class AlertProperties {
+ /*
+ * Alert title.
+ */
+ @JsonProperty(value = "title", access = JsonProperty.Access.WRITE_ONLY)
+ private String title;
+
+ /*
+ * Alert type.
+ */
+ @JsonProperty(value = "alertType", access = JsonProperty.Access.WRITE_ONLY)
+ private String alertType;
+
+ /*
+ * UTC time when the alert appeared.
+ */
+ @JsonProperty(value = "appearedAtDateTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime appearedAtDateTime;
+
+ /*
+ * Alert recommendation.
+ */
+ @JsonProperty(value = "recommendation", access = JsonProperty.Access.WRITE_ONLY)
+ private String recommendation;
+
+ /*
+ * Severity of the alert.
+ */
+ @JsonProperty(value = "severity", access = JsonProperty.Access.WRITE_ONLY)
+ private AlertSeverity severity;
+
+ /*
+ * Error details of the alert.
+ */
+ @JsonProperty(value = "errorDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private AlertErrorDetails errorDetails;
+
+ /*
+ * Alert details.
+ */
+ @JsonProperty(value = "detailedInformation", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map detailedInformation;
+
+ /** Creates an instance of AlertProperties class. */
+ public AlertProperties() {
+ }
+
+ /**
+ * Get the title property: Alert title.
+ *
+ * @return the title value.
+ */
+ public String title() {
+ return this.title;
+ }
+
+ /**
+ * Get the alertType property: Alert type.
+ *
+ * @return the alertType value.
+ */
+ public String alertType() {
+ return this.alertType;
+ }
+
+ /**
+ * Get the appearedAtDateTime property: UTC time when the alert appeared.
+ *
+ * @return the appearedAtDateTime value.
+ */
+ public OffsetDateTime appearedAtDateTime() {
+ return this.appearedAtDateTime;
+ }
+
+ /**
+ * Get the recommendation property: Alert recommendation.
+ *
+ * @return the recommendation value.
+ */
+ public String recommendation() {
+ return this.recommendation;
+ }
+
+ /**
+ * Get the severity property: Severity of the alert.
+ *
+ * @return the severity value.
+ */
+ public AlertSeverity severity() {
+ return this.severity;
+ }
+
+ /**
+ * Get the errorDetails property: Error details of the alert.
+ *
+ * @return the errorDetails value.
+ */
+ public AlertErrorDetails errorDetails() {
+ return this.errorDetails;
+ }
+
+ /**
+ * Get the detailedInformation property: Alert details.
+ *
+ * @return the detailedInformation value.
+ */
+ public Map detailedInformation() {
+ return this.detailedInformation;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (errorDetails() != null) {
+ errorDetails().validate();
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ArcAddonProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ArcAddonProperties.java
new file mode 100644
index 000000000000..8185c985a976
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ArcAddonProperties.java
@@ -0,0 +1,217 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.AddonState;
+import com.azure.resourcemanager.databoxedge.models.HostPlatformType;
+import com.azure.resourcemanager.databoxedge.models.PlatformType;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Arc addon properties. */
+@Fluent
+public final class ArcAddonProperties {
+ /*
+ * Arc resource subscription Id
+ */
+ @JsonProperty(value = "subscriptionId", required = true)
+ private String subscriptionId;
+
+ /*
+ * Arc resource group name
+ */
+ @JsonProperty(value = "resourceGroupName", required = true)
+ private String resourceGroupName;
+
+ /*
+ * Arc resource Name
+ */
+ @JsonProperty(value = "resourceName", required = true)
+ private String resourceName;
+
+ /*
+ * Arc resource location
+ */
+ @JsonProperty(value = "resourceLocation", required = true)
+ private String resourceLocation;
+
+ /*
+ * Arc resource version
+ */
+ @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY)
+ private String version;
+
+ /*
+ * Host OS supported by the Arc addon.
+ */
+ @JsonProperty(value = "hostPlatform", access = JsonProperty.Access.WRITE_ONLY)
+ private PlatformType hostPlatform;
+
+ /*
+ * Platform where the runtime is hosted.
+ */
+ @JsonProperty(value = "hostPlatformType", access = JsonProperty.Access.WRITE_ONLY)
+ private HostPlatformType hostPlatformType;
+
+ /*
+ * Addon Provisioning State
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private AddonState provisioningState;
+
+ /** Creates an instance of ArcAddonProperties class. */
+ public ArcAddonProperties() {
+ }
+
+ /**
+ * Get the subscriptionId property: Arc resource subscription Id.
+ *
+ * @return the subscriptionId value.
+ */
+ public String subscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /**
+ * Set the subscriptionId property: Arc resource subscription Id.
+ *
+ * @param subscriptionId the subscriptionId value to set.
+ * @return the ArcAddonProperties object itself.
+ */
+ public ArcAddonProperties withSubscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /**
+ * Get the resourceGroupName property: Arc resource group name.
+ *
+ * @return the resourceGroupName value.
+ */
+ public String resourceGroupName() {
+ return this.resourceGroupName;
+ }
+
+ /**
+ * Set the resourceGroupName property: Arc resource group name.
+ *
+ * @param resourceGroupName the resourceGroupName value to set.
+ * @return the ArcAddonProperties object itself.
+ */
+ public ArcAddonProperties withResourceGroupName(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ /**
+ * Get the resourceName property: Arc resource Name.
+ *
+ * @return the resourceName value.
+ */
+ public String resourceName() {
+ return this.resourceName;
+ }
+
+ /**
+ * Set the resourceName property: Arc resource Name.
+ *
+ * @param resourceName the resourceName value to set.
+ * @return the ArcAddonProperties object itself.
+ */
+ public ArcAddonProperties withResourceName(String resourceName) {
+ this.resourceName = resourceName;
+ return this;
+ }
+
+ /**
+ * Get the resourceLocation property: Arc resource location.
+ *
+ * @return the resourceLocation value.
+ */
+ public String resourceLocation() {
+ return this.resourceLocation;
+ }
+
+ /**
+ * Set the resourceLocation property: Arc resource location.
+ *
+ * @param resourceLocation the resourceLocation value to set.
+ * @return the ArcAddonProperties object itself.
+ */
+ public ArcAddonProperties withResourceLocation(String resourceLocation) {
+ this.resourceLocation = resourceLocation;
+ return this;
+ }
+
+ /**
+ * Get the version property: Arc resource version.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Get the hostPlatform property: Host OS supported by the Arc addon.
+ *
+ * @return the hostPlatform value.
+ */
+ public PlatformType hostPlatform() {
+ return this.hostPlatform;
+ }
+
+ /**
+ * Get the hostPlatformType property: Platform where the runtime is hosted.
+ *
+ * @return the hostPlatformType value.
+ */
+ public HostPlatformType hostPlatformType() {
+ return this.hostPlatformType;
+ }
+
+ /**
+ * Get the provisioningState property: Addon Provisioning State.
+ *
+ * @return the provisioningState value.
+ */
+ public AddonState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (subscriptionId() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property subscriptionId in model ArcAddonProperties"));
+ }
+ if (resourceGroupName() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property resourceGroupName in model ArcAddonProperties"));
+ }
+ if (resourceName() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property resourceName in model ArcAddonProperties"));
+ }
+ if (resourceLocation() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property resourceLocation in model ArcAddonProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ArcAddonProperties.class);
+}
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 3bd2fdf8f7c6..fa8b28b757b5 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/BandwidthScheduleInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/BandwidthScheduleInner.java
@@ -5,43 +5,49 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
import com.azure.resourcemanager.databoxedge.models.DayOfWeek;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The bandwidth schedule details. */
-@JsonFlatten
@Fluent
-public class BandwidthScheduleInner extends ArmBaseModel {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BandwidthScheduleInner.class);
-
+public final class BandwidthScheduleInner extends ArmBaseModel {
/*
- * The start time of the schedule in UTC.
+ * The properties of the bandwidth schedule.
*/
- @JsonProperty(value = "properties.start", required = true)
- private String start;
+ @JsonProperty(value = "properties", required = true)
+ private BandwidthScheduleProperties innerProperties = new BandwidthScheduleProperties();
/*
- * The stop time of the schedule in UTC.
+ * Metadata pertaining to creation and last modification of BandwidthSchedule
*/
- @JsonProperty(value = "properties.stop", required = true)
- private String stop;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
- /*
- * The bandwidth rate in Mbps.
+ /** Creates an instance of BandwidthScheduleInner class. */
+ public BandwidthScheduleInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The properties of the bandwidth schedule.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.rateInMbps", required = true)
- private int rateInMbps;
+ private BandwidthScheduleProperties innerProperties() {
+ return this.innerProperties;
+ }
- /*
- * The days of the week when this schedule is applicable.
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of BandwidthSchedule.
+ *
+ * @return the systemData value.
*/
- @JsonProperty(value = "properties.days", required = true)
- private List days;
+ public SystemData systemData() {
+ return this.systemData;
+ }
/**
* Get the start property: The start time of the schedule in UTC.
@@ -49,7 +55,7 @@ public class BandwidthScheduleInner extends ArmBaseModel {
* @return the start value.
*/
public String start() {
- return this.start;
+ return this.innerProperties() == null ? null : this.innerProperties().start();
}
/**
@@ -59,7 +65,10 @@ public String start() {
* @return the BandwidthScheduleInner object itself.
*/
public BandwidthScheduleInner withStart(String start) {
- this.start = start;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BandwidthScheduleProperties();
+ }
+ this.innerProperties().withStart(start);
return this;
}
@@ -69,7 +78,7 @@ public BandwidthScheduleInner withStart(String start) {
* @return the stop value.
*/
public String stop() {
- return this.stop;
+ return this.innerProperties() == null ? null : this.innerProperties().stop();
}
/**
@@ -79,7 +88,10 @@ public String stop() {
* @return the BandwidthScheduleInner object itself.
*/
public BandwidthScheduleInner withStop(String stop) {
- this.stop = stop;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BandwidthScheduleProperties();
+ }
+ this.innerProperties().withStop(stop);
return this;
}
@@ -89,7 +101,7 @@ public BandwidthScheduleInner withStop(String stop) {
* @return the rateInMbps value.
*/
public int rateInMbps() {
- return this.rateInMbps;
+ return this.innerProperties() == null ? 0 : this.innerProperties().rateInMbps();
}
/**
@@ -99,7 +111,10 @@ public int rateInMbps() {
* @return the BandwidthScheduleInner object itself.
*/
public BandwidthScheduleInner withRateInMbps(int rateInMbps) {
- this.rateInMbps = rateInMbps;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BandwidthScheduleProperties();
+ }
+ this.innerProperties().withRateInMbps(rateInMbps);
return this;
}
@@ -109,7 +124,7 @@ public BandwidthScheduleInner withRateInMbps(int rateInMbps) {
* @return the days value.
*/
public List days() {
- return this.days;
+ return this.innerProperties() == null ? null : this.innerProperties().days();
}
/**
@@ -119,7 +134,10 @@ public List days() {
* @return the BandwidthScheduleInner object itself.
*/
public BandwidthScheduleInner withDays(List days) {
- this.days = days;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BandwidthScheduleProperties();
+ }
+ this.innerProperties().withDays(days);
return this;
}
@@ -131,20 +149,15 @@ public BandwidthScheduleInner withDays(List days) {
@Override
public void validate() {
super.validate();
- if (start() == null) {
- throw logger
+ if (innerProperties() == null) {
+ throw LOGGER
.logExceptionAsError(
- new IllegalArgumentException("Missing required property start in model BandwidthScheduleInner"));
- }
- if (stop() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property stop in model BandwidthScheduleInner"));
- }
- if (days() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property days in model BandwidthScheduleInner"));
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model BandwidthScheduleInner"));
+ } else {
+ innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(BandwidthScheduleInner.class);
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/BandwidthScheduleProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/BandwidthScheduleProperties.java
new file mode 100644
index 000000000000..593c2c6477ab
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/BandwidthScheduleProperties.java
@@ -0,0 +1,151 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.DayOfWeek;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The properties of the bandwidth schedule. */
+@Fluent
+public final class BandwidthScheduleProperties {
+ /*
+ * The start time of the schedule in UTC.
+ */
+ @JsonProperty(value = "start", required = true)
+ private String start;
+
+ /*
+ * The stop time of the schedule in UTC.
+ */
+ @JsonProperty(value = "stop", required = true)
+ private String stop;
+
+ /*
+ * The bandwidth rate in Mbps.
+ */
+ @JsonProperty(value = "rateInMbps", required = true)
+ private int rateInMbps;
+
+ /*
+ * The days of the week when this schedule is applicable.
+ */
+ @JsonProperty(value = "days", required = true)
+ private List days;
+
+ /** Creates an instance of BandwidthScheduleProperties class. */
+ public BandwidthScheduleProperties() {
+ }
+
+ /**
+ * Get the start property: The start time of the schedule in UTC.
+ *
+ * @return the start value.
+ */
+ public String start() {
+ return this.start;
+ }
+
+ /**
+ * Set the start property: The start time of the schedule in UTC.
+ *
+ * @param start the start value to set.
+ * @return the BandwidthScheduleProperties object itself.
+ */
+ public BandwidthScheduleProperties withStart(String start) {
+ this.start = start;
+ return this;
+ }
+
+ /**
+ * Get the stop property: The stop time of the schedule in UTC.
+ *
+ * @return the stop value.
+ */
+ public String stop() {
+ return this.stop;
+ }
+
+ /**
+ * Set the stop property: The stop time of the schedule in UTC.
+ *
+ * @param stop the stop value to set.
+ * @return the BandwidthScheduleProperties object itself.
+ */
+ public BandwidthScheduleProperties withStop(String stop) {
+ this.stop = stop;
+ return this;
+ }
+
+ /**
+ * Get the rateInMbps property: The bandwidth rate in Mbps.
+ *
+ * @return the rateInMbps value.
+ */
+ public int rateInMbps() {
+ return this.rateInMbps;
+ }
+
+ /**
+ * Set the rateInMbps property: The bandwidth rate in Mbps.
+ *
+ * @param rateInMbps the rateInMbps value to set.
+ * @return the BandwidthScheduleProperties object itself.
+ */
+ public BandwidthScheduleProperties withRateInMbps(int rateInMbps) {
+ this.rateInMbps = rateInMbps;
+ return this;
+ }
+
+ /**
+ * Get the days property: The days of the week when this schedule is applicable.
+ *
+ * @return the days value.
+ */
+ public List days() {
+ return this.days;
+ }
+
+ /**
+ * Set the days property: The days of the week when this schedule is applicable.
+ *
+ * @param days the days value to set.
+ * @return the BandwidthScheduleProperties object itself.
+ */
+ public BandwidthScheduleProperties withDays(List days) {
+ this.days = days;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (start() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property start in model BandwidthScheduleProperties"));
+ }
+ if (stop() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property stop in model BandwidthScheduleProperties"));
+ }
+ if (days() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property days in model BandwidthScheduleProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(BandwidthScheduleProperties.class);
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/CloudEdgeManagementRoleProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/CloudEdgeManagementRoleProperties.java
new file mode 100644
index 000000000000..b13e36521338
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/CloudEdgeManagementRoleProperties.java
@@ -0,0 +1,94 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.EdgeProfile;
+import com.azure.resourcemanager.databoxedge.models.RoleStatus;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** CloudEdgeManagement Role properties. */
+@Fluent
+public final class CloudEdgeManagementRoleProperties {
+ /*
+ * Local Edge Management Status
+ */
+ @JsonProperty(value = "localManagementStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private RoleStatus localManagementStatus;
+
+ /*
+ * Edge Profile of the resource
+ */
+ @JsonProperty(value = "edgeProfile", access = JsonProperty.Access.WRITE_ONLY)
+ private EdgeProfile edgeProfile;
+
+ /*
+ * Role status.
+ */
+ @JsonProperty(value = "roleStatus", required = true)
+ private RoleStatus roleStatus;
+
+ /** Creates an instance of CloudEdgeManagementRoleProperties class. */
+ public CloudEdgeManagementRoleProperties() {
+ }
+
+ /**
+ * Get the localManagementStatus property: Local Edge Management Status.
+ *
+ * @return the localManagementStatus value.
+ */
+ public RoleStatus localManagementStatus() {
+ return this.localManagementStatus;
+ }
+
+ /**
+ * Get the edgeProfile property: Edge Profile of the resource.
+ *
+ * @return the edgeProfile value.
+ */
+ public EdgeProfile edgeProfile() {
+ return this.edgeProfile;
+ }
+
+ /**
+ * Get the roleStatus property: Role status.
+ *
+ * @return the roleStatus value.
+ */
+ public RoleStatus roleStatus() {
+ return this.roleStatus;
+ }
+
+ /**
+ * Set the roleStatus property: Role status.
+ *
+ * @param roleStatus the roleStatus value to set.
+ * @return the CloudEdgeManagementRoleProperties object itself.
+ */
+ public CloudEdgeManagementRoleProperties withRoleStatus(RoleStatus roleStatus) {
+ this.roleStatus = roleStatus;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (edgeProfile() != null) {
+ edgeProfile().validate();
+ }
+ if (roleStatus() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property roleStatus in model CloudEdgeManagementRoleProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(CloudEdgeManagementRoleProperties.class);
+}
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 d4c2952aa00f..20805c371bb3 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ContainerInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ContainerInner.java
@@ -5,45 +5,51 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
import com.azure.resourcemanager.databoxedge.models.AzureContainerDataFormat;
import com.azure.resourcemanager.databoxedge.models.ContainerStatus;
import com.azure.resourcemanager.databoxedge.models.RefreshDetails;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** Represents a container on the Data Box Edge/Gateway device. */
-@JsonFlatten
@Fluent
-public class ContainerInner extends ArmBaseModel {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ContainerInner.class);
-
+public final class ContainerInner extends ArmBaseModel {
/*
- * Current status of the container.
+ * The container properties.
*/
- @JsonProperty(value = "properties.containerStatus", access = JsonProperty.Access.WRITE_ONLY)
- private ContainerStatus containerStatus;
+ @JsonProperty(value = "properties", required = true)
+ private ContainerProperties innerProperties = new ContainerProperties();
/*
- * DataFormat for Container
+ * Metadata pertaining to creation and last modification of Container
*/
- @JsonProperty(value = "properties.dataFormat", required = true)
- private AzureContainerDataFormat dataFormat;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
- /*
- * Details of the refresh job on this container.
+ /** Creates an instance of ContainerInner class. */
+ public ContainerInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The container properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.refreshDetails", access = JsonProperty.Access.WRITE_ONLY)
- private RefreshDetails refreshDetails;
+ private ContainerProperties innerProperties() {
+ return this.innerProperties;
+ }
- /*
- * The UTC time when container got created.
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of Container.
+ *
+ * @return the systemData value.
*/
- @JsonProperty(value = "properties.createdDateTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime createdDateTime;
+ public SystemData systemData() {
+ return this.systemData;
+ }
/**
* Get the containerStatus property: Current status of the container.
@@ -51,7 +57,7 @@ public class ContainerInner extends ArmBaseModel {
* @return the containerStatus value.
*/
public ContainerStatus containerStatus() {
- return this.containerStatus;
+ return this.innerProperties() == null ? null : this.innerProperties().containerStatus();
}
/**
@@ -60,7 +66,7 @@ public ContainerStatus containerStatus() {
* @return the dataFormat value.
*/
public AzureContainerDataFormat dataFormat() {
- return this.dataFormat;
+ return this.innerProperties() == null ? null : this.innerProperties().dataFormat();
}
/**
@@ -70,7 +76,10 @@ public AzureContainerDataFormat dataFormat() {
* @return the ContainerInner object itself.
*/
public ContainerInner withDataFormat(AzureContainerDataFormat dataFormat) {
- this.dataFormat = dataFormat;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerProperties();
+ }
+ this.innerProperties().withDataFormat(dataFormat);
return this;
}
@@ -80,7 +89,7 @@ public ContainerInner withDataFormat(AzureContainerDataFormat dataFormat) {
* @return the refreshDetails value.
*/
public RefreshDetails refreshDetails() {
- return this.refreshDetails;
+ return this.innerProperties() == null ? null : this.innerProperties().refreshDetails();
}
/**
@@ -89,7 +98,7 @@ public RefreshDetails refreshDetails() {
* @return the createdDateTime value.
*/
public OffsetDateTime createdDateTime() {
- return this.createdDateTime;
+ return this.innerProperties() == null ? null : this.innerProperties().createdDateTime();
}
/**
@@ -100,13 +109,14 @@ public OffsetDateTime createdDateTime() {
@Override
public void validate() {
super.validate();
- if (dataFormat() == null) {
- throw logger
+ if (innerProperties() == null) {
+ throw LOGGER
.logExceptionAsError(
- new IllegalArgumentException("Missing required property dataFormat in model ContainerInner"));
- }
- if (refreshDetails() != null) {
- refreshDetails().validate();
+ new IllegalArgumentException("Missing required property innerProperties in model ContainerInner"));
+ } else {
+ innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(ContainerInner.class);
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ContainerProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ContainerProperties.java
new file mode 100644
index 000000000000..4a286bd0755d
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ContainerProperties.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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.AzureContainerDataFormat;
+import com.azure.resourcemanager.databoxedge.models.ContainerStatus;
+import com.azure.resourcemanager.databoxedge.models.RefreshDetails;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** The container properties. */
+@Fluent
+public final class ContainerProperties {
+ /*
+ * Current status of the container.
+ */
+ @JsonProperty(value = "containerStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private ContainerStatus containerStatus;
+
+ /*
+ * DataFormat for Container
+ */
+ @JsonProperty(value = "dataFormat", required = true)
+ private AzureContainerDataFormat dataFormat;
+
+ /*
+ * Details of the refresh job on this container.
+ */
+ @JsonProperty(value = "refreshDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private RefreshDetails refreshDetails;
+
+ /*
+ * The UTC time when container got created.
+ */
+ @JsonProperty(value = "createdDateTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime createdDateTime;
+
+ /** Creates an instance of ContainerProperties class. */
+ public ContainerProperties() {
+ }
+
+ /**
+ * Get the containerStatus property: Current status of the container.
+ *
+ * @return the containerStatus value.
+ */
+ public ContainerStatus containerStatus() {
+ return this.containerStatus;
+ }
+
+ /**
+ * Get the dataFormat property: DataFormat for Container.
+ *
+ * @return the dataFormat value.
+ */
+ public AzureContainerDataFormat dataFormat() {
+ return this.dataFormat;
+ }
+
+ /**
+ * Set the dataFormat property: DataFormat for Container.
+ *
+ * @param dataFormat the dataFormat value to set.
+ * @return the ContainerProperties object itself.
+ */
+ public ContainerProperties withDataFormat(AzureContainerDataFormat dataFormat) {
+ this.dataFormat = dataFormat;
+ return this;
+ }
+
+ /**
+ * Get the refreshDetails property: Details of the refresh job on this container.
+ *
+ * @return the refreshDetails value.
+ */
+ public RefreshDetails refreshDetails() {
+ return this.refreshDetails;
+ }
+
+ /**
+ * Get the createdDateTime property: The UTC time when container got created.
+ *
+ * @return the createdDateTime value.
+ */
+ public OffsetDateTime createdDateTime() {
+ return this.createdDateTime;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (dataFormat() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property dataFormat in model ContainerProperties"));
+ }
+ if (refreshDetails() != null) {
+ refreshDetails().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ContainerProperties.class);
+}
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 000000000000..2dde8155be26
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DCAccessCodeInner.java
@@ -0,0 +1,65 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** DC Access code in the case of Self Managed Shipping. */
+@Fluent
+public final class DCAccessCodeInner {
+ /*
+ * DCAccessCode properties.
+ */
+ @JsonProperty(value = "properties")
+ private DCAccessCodeProperties innerProperties;
+
+ /** Creates an instance of DCAccessCodeInner class. */
+ public DCAccessCodeInner() {
+ }
+
+ /**
+ * Get the innerProperties property: DCAccessCode properties.
+ *
+ * @return the innerProperties value.
+ */
+ private DCAccessCodeProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the authCode property: DCAccess Code for the Self Managed shipment.
+ *
+ * @return the authCode value.
+ */
+ public String authCode() {
+ return this.innerProperties() == null ? null : this.innerProperties().authCode();
+ }
+
+ /**
+ * Set the authCode property: DCAccess Code for the Self Managed shipment.
+ *
+ * @param authCode the authCode value to set.
+ * @return the DCAccessCodeInner object itself.
+ */
+ public DCAccessCodeInner withAuthCode(String authCode) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DCAccessCodeProperties();
+ }
+ this.innerProperties().withAuthCode(authCode);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DCAccessCodeProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DCAccessCodeProperties.java
new file mode 100644
index 000000000000..0c5557ca9898
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DCAccessCodeProperties.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** DCAccessCode Properties. */
+@Fluent
+public final class DCAccessCodeProperties {
+ /*
+ * DCAccess Code for the Self Managed shipment.
+ */
+ @JsonProperty(value = "authCode")
+ private String authCode;
+
+ /** Creates an instance of DCAccessCodeProperties class. */
+ public DCAccessCodeProperties() {
+ }
+
+ /**
+ * Get the authCode property: DCAccess Code for the Self Managed shipment.
+ *
+ * @return the authCode value.
+ */
+ public String authCode() {
+ return this.authCode;
+ }
+
+ /**
+ * Set the authCode property: DCAccess Code for the Self Managed shipment.
+ *
+ * @param authCode the authCode value to set.
+ * @return the DCAccessCodeProperties object itself.
+ */
+ public DCAccessCodeProperties withAuthCode(String authCode) {
+ this.authCode = authCode;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceExtendedInfoInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceExtendedInfoInner.java
index e748fb08dbf4..cffcda0d0075 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceExtendedInfoInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceExtendedInfoInner.java
@@ -5,36 +5,50 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
-import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.management.SystemData;
import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
-import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.azure.resourcemanager.databoxedge.models.ClusterWitnessType;
+import com.azure.resourcemanager.databoxedge.models.KeyVaultSyncStatus;
+import com.azure.resourcemanager.databoxedge.models.Secret;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
/** The extended Info of the Data Box Edge/Gateway device. */
-@JsonFlatten
@Fluent
-public class DataBoxEdgeDeviceExtendedInfoInner extends ArmBaseModel {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DataBoxEdgeDeviceExtendedInfoInner.class);
-
+public final class DataBoxEdgeDeviceExtendedInfoInner extends ArmBaseModel {
/*
- * The digital signature of encrypted certificate.
+ * The extended info properties.
*/
- @JsonProperty(value = "properties.encryptionKeyThumbprint")
- private String encryptionKeyThumbprint;
+ @JsonProperty(value = "properties")
+ private DataBoxEdgeDeviceExtendedInfoProperties innerProperties;
/*
- * The public part of the encryption certificate. Client uses this to
- * encrypt any secret.
+ * Metadata pertaining to creation and last modification of DataBoxEdgeDevice
*/
- @JsonProperty(value = "properties.encryptionKey")
- private String encryptionKey;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
- /*
- * The Resource ID of the Resource.
+ /** Creates an instance of DataBoxEdgeDeviceExtendedInfoInner class. */
+ public DataBoxEdgeDeviceExtendedInfoInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The extended info properties.
+ *
+ * @return the innerProperties value.
+ */
+ private DataBoxEdgeDeviceExtendedInfoProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of DataBoxEdgeDevice.
+ *
+ * @return the systemData value.
*/
- @JsonProperty(value = "properties.resourceKey", access = JsonProperty.Access.WRITE_ONLY)
- private String resourceKey;
+ public SystemData systemData() {
+ return this.systemData;
+ }
/**
* Get the encryptionKeyThumbprint property: The digital signature of encrypted certificate.
@@ -42,7 +56,7 @@ public class DataBoxEdgeDeviceExtendedInfoInner extends ArmBaseModel {
* @return the encryptionKeyThumbprint value.
*/
public String encryptionKeyThumbprint() {
- return this.encryptionKeyThumbprint;
+ return this.innerProperties() == null ? null : this.innerProperties().encryptionKeyThumbprint();
}
/**
@@ -52,7 +66,10 @@ public String encryptionKeyThumbprint() {
* @return the DataBoxEdgeDeviceExtendedInfoInner object itself.
*/
public DataBoxEdgeDeviceExtendedInfoInner withEncryptionKeyThumbprint(String encryptionKeyThumbprint) {
- this.encryptionKeyThumbprint = encryptionKeyThumbprint;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataBoxEdgeDeviceExtendedInfoProperties();
+ }
+ this.innerProperties().withEncryptionKeyThumbprint(encryptionKeyThumbprint);
return this;
}
@@ -63,7 +80,7 @@ public DataBoxEdgeDeviceExtendedInfoInner withEncryptionKeyThumbprint(String enc
* @return the encryptionKey value.
*/
public String encryptionKey() {
- return this.encryptionKey;
+ return this.innerProperties() == null ? null : this.innerProperties().encryptionKey();
}
/**
@@ -74,7 +91,10 @@ public String encryptionKey() {
* @return the DataBoxEdgeDeviceExtendedInfoInner object itself.
*/
public DataBoxEdgeDeviceExtendedInfoInner withEncryptionKey(String encryptionKey) {
- this.encryptionKey = encryptionKey;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataBoxEdgeDeviceExtendedInfoProperties();
+ }
+ this.innerProperties().withEncryptionKey(encryptionKey);
return this;
}
@@ -84,7 +104,185 @@ public DataBoxEdgeDeviceExtendedInfoInner withEncryptionKey(String encryptionKey
* @return the resourceKey value.
*/
public String resourceKey() {
- return this.resourceKey;
+ return this.innerProperties() == null ? null : this.innerProperties().resourceKey();
+ }
+
+ /**
+ * Get the clientSecretStoreId property: The Key Vault ARM Id for client secrets.
+ *
+ * @return the clientSecretStoreId value.
+ */
+ public String clientSecretStoreId() {
+ return this.innerProperties() == null ? null : this.innerProperties().clientSecretStoreId();
+ }
+
+ /**
+ * Set the clientSecretStoreId property: The Key Vault ARM Id for client secrets.
+ *
+ * @param clientSecretStoreId the clientSecretStoreId value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoInner object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoInner withClientSecretStoreId(String clientSecretStoreId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataBoxEdgeDeviceExtendedInfoProperties();
+ }
+ this.innerProperties().withClientSecretStoreId(clientSecretStoreId);
+ return this;
+ }
+
+ /**
+ * Get the clientSecretStoreUrl property: The url to access the Client Key Vault.
+ *
+ * @return the clientSecretStoreUrl value.
+ */
+ public String clientSecretStoreUrl() {
+ return this.innerProperties() == null ? null : this.innerProperties().clientSecretStoreUrl();
+ }
+
+ /**
+ * Set the clientSecretStoreUrl property: The url to access the Client Key Vault.
+ *
+ * @param clientSecretStoreUrl the clientSecretStoreUrl value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoInner object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoInner withClientSecretStoreUrl(String clientSecretStoreUrl) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataBoxEdgeDeviceExtendedInfoProperties();
+ }
+ this.innerProperties().withClientSecretStoreUrl(clientSecretStoreUrl);
+ return this;
+ }
+
+ /**
+ * Get the channelIntegrityKeyName property: The name of Channel Integrity Key stored in the Client Key Vault.
+ *
+ * @return the channelIntegrityKeyName value.
+ */
+ public String channelIntegrityKeyName() {
+ return this.innerProperties() == null ? null : this.innerProperties().channelIntegrityKeyName();
+ }
+
+ /**
+ * Set the channelIntegrityKeyName property: The name of Channel Integrity Key stored in the Client Key Vault.
+ *
+ * @param channelIntegrityKeyName the channelIntegrityKeyName value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoInner object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoInner withChannelIntegrityKeyName(String channelIntegrityKeyName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataBoxEdgeDeviceExtendedInfoProperties();
+ }
+ this.innerProperties().withChannelIntegrityKeyName(channelIntegrityKeyName);
+ return this;
+ }
+
+ /**
+ * Get the channelIntegrityKeyVersion property: The version of Channel Integrity Key stored in the Client Key Vault.
+ *
+ * @return the channelIntegrityKeyVersion value.
+ */
+ public String channelIntegrityKeyVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().channelIntegrityKeyVersion();
+ }
+
+ /**
+ * Set the channelIntegrityKeyVersion property: The version of Channel Integrity Key stored in the Client Key Vault.
+ *
+ * @param channelIntegrityKeyVersion the channelIntegrityKeyVersion value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoInner object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoInner withChannelIntegrityKeyVersion(String channelIntegrityKeyVersion) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataBoxEdgeDeviceExtendedInfoProperties();
+ }
+ this.innerProperties().withChannelIntegrityKeyVersion(channelIntegrityKeyVersion);
+ return this;
+ }
+
+ /**
+ * Get the keyVaultSyncStatus property: Key vault sync status.
+ *
+ * @return the keyVaultSyncStatus value.
+ */
+ public KeyVaultSyncStatus keyVaultSyncStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().keyVaultSyncStatus();
+ }
+
+ /**
+ * Set the keyVaultSyncStatus property: Key vault sync status.
+ *
+ * @param keyVaultSyncStatus the keyVaultSyncStatus value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoInner object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoInner withKeyVaultSyncStatus(KeyVaultSyncStatus keyVaultSyncStatus) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataBoxEdgeDeviceExtendedInfoProperties();
+ }
+ this.innerProperties().withKeyVaultSyncStatus(keyVaultSyncStatus);
+ return this;
+ }
+
+ /**
+ * Get the deviceSecrets property: Device secrets, will be returned only with ODataFilter $expand=deviceSecrets.
+ *
+ * @return the deviceSecrets value.
+ */
+ public Map deviceSecrets() {
+ return this.innerProperties() == null ? null : this.innerProperties().deviceSecrets();
+ }
+
+ /**
+ * Get the clusterWitnessType property: Cluster Witness Type.
+ *
+ * @return the clusterWitnessType value.
+ */
+ public ClusterWitnessType clusterWitnessType() {
+ return this.innerProperties() == null ? null : this.innerProperties().clusterWitnessType();
+ }
+
+ /**
+ * Get the fileShareWitnessLocation property: The witness location of file share.
+ *
+ * @return the fileShareWitnessLocation value.
+ */
+ public String fileShareWitnessLocation() {
+ return this.innerProperties() == null ? null : this.innerProperties().fileShareWitnessLocation();
+ }
+
+ /**
+ * Get the fileShareWitnessUsername property: The username of file share.
+ *
+ * @return the fileShareWitnessUsername value.
+ */
+ public String fileShareWitnessUsername() {
+ return this.innerProperties() == null ? null : this.innerProperties().fileShareWitnessUsername();
+ }
+
+ /**
+ * Get the cloudWitnessStorageAccountName property: The Cloud Witness Storage account name.
+ *
+ * @return the cloudWitnessStorageAccountName value.
+ */
+ public String cloudWitnessStorageAccountName() {
+ return this.innerProperties() == null ? null : this.innerProperties().cloudWitnessStorageAccountName();
+ }
+
+ /**
+ * Get the cloudWitnessContainerName property: The Container for cloud witness in the storage account.
+ *
+ * @return the cloudWitnessContainerName value.
+ */
+ public String cloudWitnessContainerName() {
+ return this.innerProperties() == null ? null : this.innerProperties().cloudWitnessContainerName();
+ }
+
+ /**
+ * Get the cloudWitnessStorageEndpoint property: The Azure service endpoint of the cloud witness storage account.
+ *
+ * @return the cloudWitnessStorageEndpoint value.
+ */
+ public String cloudWitnessStorageEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().cloudWitnessStorageEndpoint();
}
/**
@@ -95,5 +293,8 @@ public String resourceKey() {
@Override
public void validate() {
super.validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceExtendedInfoProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceExtendedInfoProperties.java
new file mode 100644
index 000000000000..7cc0dcf7a10d
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceExtendedInfoProperties.java
@@ -0,0 +1,344 @@
+// 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.resourcemanager.databoxedge.models.ClusterWitnessType;
+import com.azure.resourcemanager.databoxedge.models.KeyVaultSyncStatus;
+import com.azure.resourcemanager.databoxedge.models.Secret;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** The properties of the Data Box Edge/Gateway device extended info. */
+@Fluent
+public final class DataBoxEdgeDeviceExtendedInfoProperties {
+ /*
+ * The digital signature of encrypted certificate.
+ */
+ @JsonProperty(value = "encryptionKeyThumbprint")
+ private String encryptionKeyThumbprint;
+
+ /*
+ * The public part of the encryption certificate. Client uses this to encrypt any secret.
+ */
+ @JsonProperty(value = "encryptionKey")
+ private String encryptionKey;
+
+ /*
+ * The Resource ID of the Resource.
+ */
+ @JsonProperty(value = "resourceKey", access = JsonProperty.Access.WRITE_ONLY)
+ private String resourceKey;
+
+ /*
+ * The Key Vault ARM Id for client secrets
+ */
+ @JsonProperty(value = "clientSecretStoreId")
+ private String clientSecretStoreId;
+
+ /*
+ * The url to access the Client Key Vault
+ */
+ @JsonProperty(value = "clientSecretStoreUrl")
+ private String clientSecretStoreUrl;
+
+ /*
+ * The name of Channel Integrity Key stored in the Client Key Vault
+ */
+ @JsonProperty(value = "channelIntegrityKeyName")
+ private String channelIntegrityKeyName;
+
+ /*
+ * The version of Channel Integrity Key stored in the Client Key Vault
+ */
+ @JsonProperty(value = "channelIntegrityKeyVersion")
+ private String channelIntegrityKeyVersion;
+
+ /*
+ * Key vault sync status
+ */
+ @JsonProperty(value = "keyVaultSyncStatus")
+ private KeyVaultSyncStatus keyVaultSyncStatus;
+
+ /*
+ * Device secrets, will be returned only with ODataFilter $expand=deviceSecrets
+ */
+ @JsonProperty(value = "deviceSecrets", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map deviceSecrets;
+
+ /*
+ * Cluster Witness Type
+ */
+ @JsonProperty(value = "clusterWitnessType", access = JsonProperty.Access.WRITE_ONLY)
+ private ClusterWitnessType clusterWitnessType;
+
+ /*
+ * The witness location of file share.
+ */
+ @JsonProperty(value = "fileShareWitnessLocation", access = JsonProperty.Access.WRITE_ONLY)
+ private String fileShareWitnessLocation;
+
+ /*
+ * The username of file share.
+ */
+ @JsonProperty(value = "fileShareWitnessUsername", access = JsonProperty.Access.WRITE_ONLY)
+ private String fileShareWitnessUsername;
+
+ /*
+ * The Cloud Witness Storage account name.
+ */
+ @JsonProperty(value = "cloudWitnessStorageAccountName", access = JsonProperty.Access.WRITE_ONLY)
+ private String cloudWitnessStorageAccountName;
+
+ /*
+ * The Container for cloud witness in the storage account.
+ */
+ @JsonProperty(value = "cloudWitnessContainerName", access = JsonProperty.Access.WRITE_ONLY)
+ private String cloudWitnessContainerName;
+
+ /*
+ * The Azure service endpoint of the cloud witness storage account.
+ */
+ @JsonProperty(value = "cloudWitnessStorageEndpoint", access = JsonProperty.Access.WRITE_ONLY)
+ private String cloudWitnessStorageEndpoint;
+
+ /** Creates an instance of DataBoxEdgeDeviceExtendedInfoProperties class. */
+ public DataBoxEdgeDeviceExtendedInfoProperties() {
+ }
+
+ /**
+ * Get the encryptionKeyThumbprint property: The digital signature of encrypted certificate.
+ *
+ * @return the encryptionKeyThumbprint value.
+ */
+ public String encryptionKeyThumbprint() {
+ return this.encryptionKeyThumbprint;
+ }
+
+ /**
+ * Set the encryptionKeyThumbprint property: The digital signature of encrypted certificate.
+ *
+ * @param encryptionKeyThumbprint the encryptionKeyThumbprint value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoProperties object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoProperties withEncryptionKeyThumbprint(String encryptionKeyThumbprint) {
+ this.encryptionKeyThumbprint = encryptionKeyThumbprint;
+ return this;
+ }
+
+ /**
+ * Get the encryptionKey property: The public part of the encryption certificate. Client uses this to encrypt any
+ * secret.
+ *
+ * @return the encryptionKey value.
+ */
+ public String encryptionKey() {
+ return this.encryptionKey;
+ }
+
+ /**
+ * Set the encryptionKey property: The public part of the encryption certificate. Client uses this to encrypt any
+ * secret.
+ *
+ * @param encryptionKey the encryptionKey value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoProperties object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoProperties withEncryptionKey(String encryptionKey) {
+ this.encryptionKey = encryptionKey;
+ return this;
+ }
+
+ /**
+ * Get the resourceKey property: The Resource ID of the Resource.
+ *
+ * @return the resourceKey value.
+ */
+ public String resourceKey() {
+ return this.resourceKey;
+ }
+
+ /**
+ * Get the clientSecretStoreId property: The Key Vault ARM Id for client secrets.
+ *
+ * @return the clientSecretStoreId value.
+ */
+ public String clientSecretStoreId() {
+ return this.clientSecretStoreId;
+ }
+
+ /**
+ * Set the clientSecretStoreId property: The Key Vault ARM Id for client secrets.
+ *
+ * @param clientSecretStoreId the clientSecretStoreId value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoProperties object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoProperties withClientSecretStoreId(String clientSecretStoreId) {
+ this.clientSecretStoreId = clientSecretStoreId;
+ return this;
+ }
+
+ /**
+ * Get the clientSecretStoreUrl property: The url to access the Client Key Vault.
+ *
+ * @return the clientSecretStoreUrl value.
+ */
+ public String clientSecretStoreUrl() {
+ return this.clientSecretStoreUrl;
+ }
+
+ /**
+ * Set the clientSecretStoreUrl property: The url to access the Client Key Vault.
+ *
+ * @param clientSecretStoreUrl the clientSecretStoreUrl value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoProperties object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoProperties withClientSecretStoreUrl(String clientSecretStoreUrl) {
+ this.clientSecretStoreUrl = clientSecretStoreUrl;
+ return this;
+ }
+
+ /**
+ * Get the channelIntegrityKeyName property: The name of Channel Integrity Key stored in the Client Key Vault.
+ *
+ * @return the channelIntegrityKeyName value.
+ */
+ public String channelIntegrityKeyName() {
+ return this.channelIntegrityKeyName;
+ }
+
+ /**
+ * Set the channelIntegrityKeyName property: The name of Channel Integrity Key stored in the Client Key Vault.
+ *
+ * @param channelIntegrityKeyName the channelIntegrityKeyName value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoProperties object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoProperties withChannelIntegrityKeyName(String channelIntegrityKeyName) {
+ this.channelIntegrityKeyName = channelIntegrityKeyName;
+ return this;
+ }
+
+ /**
+ * Get the channelIntegrityKeyVersion property: The version of Channel Integrity Key stored in the Client Key Vault.
+ *
+ * @return the channelIntegrityKeyVersion value.
+ */
+ public String channelIntegrityKeyVersion() {
+ return this.channelIntegrityKeyVersion;
+ }
+
+ /**
+ * Set the channelIntegrityKeyVersion property: The version of Channel Integrity Key stored in the Client Key Vault.
+ *
+ * @param channelIntegrityKeyVersion the channelIntegrityKeyVersion value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoProperties object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoProperties withChannelIntegrityKeyVersion(String channelIntegrityKeyVersion) {
+ this.channelIntegrityKeyVersion = channelIntegrityKeyVersion;
+ return this;
+ }
+
+ /**
+ * Get the keyVaultSyncStatus property: Key vault sync status.
+ *
+ * @return the keyVaultSyncStatus value.
+ */
+ public KeyVaultSyncStatus keyVaultSyncStatus() {
+ return this.keyVaultSyncStatus;
+ }
+
+ /**
+ * Set the keyVaultSyncStatus property: Key vault sync status.
+ *
+ * @param keyVaultSyncStatus the keyVaultSyncStatus value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoProperties object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoProperties withKeyVaultSyncStatus(KeyVaultSyncStatus keyVaultSyncStatus) {
+ this.keyVaultSyncStatus = keyVaultSyncStatus;
+ return this;
+ }
+
+ /**
+ * Get the deviceSecrets property: Device secrets, will be returned only with ODataFilter $expand=deviceSecrets.
+ *
+ * @return the deviceSecrets value.
+ */
+ public Map deviceSecrets() {
+ return this.deviceSecrets;
+ }
+
+ /**
+ * Get the clusterWitnessType property: Cluster Witness Type.
+ *
+ * @return the clusterWitnessType value.
+ */
+ public ClusterWitnessType clusterWitnessType() {
+ return this.clusterWitnessType;
+ }
+
+ /**
+ * Get the fileShareWitnessLocation property: The witness location of file share.
+ *
+ * @return the fileShareWitnessLocation value.
+ */
+ public String fileShareWitnessLocation() {
+ return this.fileShareWitnessLocation;
+ }
+
+ /**
+ * Get the fileShareWitnessUsername property: The username of file share.
+ *
+ * @return the fileShareWitnessUsername value.
+ */
+ public String fileShareWitnessUsername() {
+ return this.fileShareWitnessUsername;
+ }
+
+ /**
+ * Get the cloudWitnessStorageAccountName property: The Cloud Witness Storage account name.
+ *
+ * @return the cloudWitnessStorageAccountName value.
+ */
+ public String cloudWitnessStorageAccountName() {
+ return this.cloudWitnessStorageAccountName;
+ }
+
+ /**
+ * Get the cloudWitnessContainerName property: The Container for cloud witness in the storage account.
+ *
+ * @return the cloudWitnessContainerName value.
+ */
+ public String cloudWitnessContainerName() {
+ return this.cloudWitnessContainerName;
+ }
+
+ /**
+ * Get the cloudWitnessStorageEndpoint property: The Azure service endpoint of the cloud witness storage account.
+ *
+ * @return the cloudWitnessStorageEndpoint value.
+ */
+ public String cloudWitnessStorageEndpoint() {
+ return this.cloudWitnessStorageEndpoint;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (deviceSecrets() != null) {
+ deviceSecrets()
+ .values()
+ .forEach(
+ e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceInner.java
index 37f660791285..f1077116b3dc 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceInner.java
@@ -5,39 +5,40 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
+import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeDeviceKind;
import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeDeviceStatus;
+import com.azure.resourcemanager.databoxedge.models.DataResidency;
import com.azure.resourcemanager.databoxedge.models.DeviceType;
+import com.azure.resourcemanager.databoxedge.models.EdgeProfile;
+import com.azure.resourcemanager.databoxedge.models.ResourceIdentity;
+import com.azure.resourcemanager.databoxedge.models.ResourceMoveDetails;
import com.azure.resourcemanager.databoxedge.models.RoleTypes;
import com.azure.resourcemanager.databoxedge.models.Sku;
-import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
/** The Data Box Edge/Gateway device. */
-@JsonFlatten
@Fluent
-public class DataBoxEdgeDeviceInner extends ArmBaseModel {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DataBoxEdgeDeviceInner.class);
-
+public final class DataBoxEdgeDeviceInner extends ArmBaseModel {
/*
- * 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 once it is
- * created, but if an identical geographical region is specified on update,
- * the request will succeed.
+ * 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 once it is created, but if an
+ * identical geographical region is specified on update, the request will succeed.
*/
@JsonProperty(value = "location", required = true)
private String location;
/*
- * The list of tags that describe the device. These tags can be used to
- * view and group this device (across resource groups).
+ * The list of tags that describe the device. These tags can be used to view and group this device (across resource
+ * groups).
*/
@JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
/*
@@ -53,88 +54,32 @@ public class DataBoxEdgeDeviceInner extends ArmBaseModel {
private String etag;
/*
- * The status of the Data Box Edge/Gateway device.
- */
- @JsonProperty(value = "properties.dataBoxEdgeDeviceStatus")
- private DataBoxEdgeDeviceStatus dataBoxEdgeDeviceStatus;
-
- /*
- * The Serial Number of Data Box Edge/Gateway device.
- */
- @JsonProperty(value = "properties.serialNumber", access = JsonProperty.Access.WRITE_ONLY)
- private String serialNumber;
-
- /*
- * The Description of the Data Box Edge/Gateway device.
- */
- @JsonProperty(value = "properties.description")
- private String description;
-
- /*
- * The description of the Data Box Edge/Gateway device model.
- */
- @JsonProperty(value = "properties.modelDescription")
- private String modelDescription;
-
- /*
- * The type of the Data Box Edge/Gateway device.
- */
- @JsonProperty(value = "properties.deviceType", access = JsonProperty.Access.WRITE_ONLY)
- private DeviceType deviceType;
-
- /*
- * The Data Box Edge/Gateway device name.
- */
- @JsonProperty(value = "properties.friendlyName")
- private String friendlyName;
-
- /*
- * The Data Box Edge/Gateway device culture.
- */
- @JsonProperty(value = "properties.culture", access = JsonProperty.Access.WRITE_ONLY)
- private String culture;
-
- /*
- * The Data Box Edge/Gateway device model.
- */
- @JsonProperty(value = "properties.deviceModel", access = JsonProperty.Access.WRITE_ONLY)
- private String deviceModel;
-
- /*
- * The Data Box Edge/Gateway device software version.
- */
- @JsonProperty(value = "properties.deviceSoftwareVersion", access = JsonProperty.Access.WRITE_ONLY)
- private String deviceSoftwareVersion;
-
- /*
- * The Data Box Edge/Gateway device local capacity in MB.
+ * Msi identity of the resource
*/
- @JsonProperty(value = "properties.deviceLocalCapacity", access = JsonProperty.Access.WRITE_ONLY)
- private Long deviceLocalCapacity;
+ @JsonProperty(value = "identity")
+ private ResourceIdentity identity;
/*
- * The Data Box Edge/Gateway device timezone.
+ * The kind of the device.
*/
- @JsonProperty(value = "properties.timeZone", access = JsonProperty.Access.WRITE_ONLY)
- private String timeZone;
+ @JsonProperty(value = "kind", access = JsonProperty.Access.WRITE_ONLY)
+ private DataBoxEdgeDeviceKind kind;
/*
- * The device software version number of the device (eg: 1.2.18105.6).
+ * DataBoxEdge Resource
*/
- @JsonProperty(value = "properties.deviceHcsVersion", access = JsonProperty.Access.WRITE_ONLY)
- private String deviceHcsVersion;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
/*
- * Type of compute roles configured.
+ * The properties of the Data Box Edge/Gateway device.
*/
- @JsonProperty(value = "properties.configuredRoleTypes", access = JsonProperty.Access.WRITE_ONLY)
- private List configuredRoleTypes;
+ @JsonProperty(value = "properties")
+ private DataBoxEdgeDeviceProperties innerProperties;
- /*
- * The number of nodes in the cluster.
- */
- @JsonProperty(value = "properties.nodeCount", access = JsonProperty.Access.WRITE_ONLY)
- private Integer nodeCount;
+ /** Creates an instance of DataBoxEdgeDeviceInner class. */
+ public DataBoxEdgeDeviceInner() {
+ }
/**
* Get the location property: The location of the device. This is a supported and registered Azure geographical
@@ -223,72 +168,95 @@ public DataBoxEdgeDeviceInner withEtag(String etag) {
}
/**
- * Get the dataBoxEdgeDeviceStatus property: The status of the Data Box Edge/Gateway device.
+ * Get the identity property: Msi identity of the resource.
*
- * @return the dataBoxEdgeDeviceStatus value.
+ * @return the identity value.
*/
- public DataBoxEdgeDeviceStatus dataBoxEdgeDeviceStatus() {
- return this.dataBoxEdgeDeviceStatus;
+ public ResourceIdentity identity() {
+ return this.identity;
}
/**
- * Set the dataBoxEdgeDeviceStatus property: The status of the Data Box Edge/Gateway device.
+ * Set the identity property: Msi identity of the resource.
*
- * @param dataBoxEdgeDeviceStatus the dataBoxEdgeDeviceStatus value to set.
+ * @param identity the identity value to set.
* @return the DataBoxEdgeDeviceInner object itself.
*/
- public DataBoxEdgeDeviceInner withDataBoxEdgeDeviceStatus(DataBoxEdgeDeviceStatus dataBoxEdgeDeviceStatus) {
- this.dataBoxEdgeDeviceStatus = dataBoxEdgeDeviceStatus;
+ public DataBoxEdgeDeviceInner withIdentity(ResourceIdentity identity) {
+ this.identity = identity;
return this;
}
/**
- * Get the serialNumber property: The Serial Number of Data Box Edge/Gateway device.
+ * Get the kind property: The kind of the device.
*
- * @return the serialNumber value.
+ * @return the kind value.
*/
- public String serialNumber() {
- return this.serialNumber;
+ public DataBoxEdgeDeviceKind kind() {
+ return this.kind;
}
/**
- * Get the description property: The Description of the Data Box Edge/Gateway device.
+ * Get the systemData property: DataBoxEdge Resource.
*
- * @return the description value.
+ * @return the systemData value.
*/
- public String description() {
- return this.description;
+ public SystemData systemData() {
+ return this.systemData;
}
/**
- * Set the description property: The Description of the Data Box Edge/Gateway device.
+ * Get the innerProperties property: The properties of the Data Box Edge/Gateway device.
*
- * @param description the description value to set.
- * @return the DataBoxEdgeDeviceInner object itself.
+ * @return the innerProperties value.
*/
- public DataBoxEdgeDeviceInner withDescription(String description) {
- this.description = description;
- return this;
+ private DataBoxEdgeDeviceProperties innerProperties() {
+ return this.innerProperties;
}
/**
- * Get the modelDescription property: The description of the Data Box Edge/Gateway device model.
+ * Get the systemData property: DataBoxEdge Device Properties.
*
- * @return the modelDescription value.
+ * @return the systemData value.
*/
- public String modelDescription() {
- return this.modelDescription;
+ public SystemData systemDataPropertiesSystemData() {
+ return this.innerProperties() == null ? null : this.innerProperties().systemData();
}
/**
- * Set the modelDescription property: The description of the Data Box Edge/Gateway device model.
+ * Get the dataBoxEdgeDeviceStatus property: The status of the Data Box Edge/Gateway device.
*
- * @param modelDescription the modelDescription value to set.
- * @return the DataBoxEdgeDeviceInner object itself.
+ * @return the dataBoxEdgeDeviceStatus value.
*/
- public DataBoxEdgeDeviceInner withModelDescription(String modelDescription) {
- this.modelDescription = modelDescription;
- return this;
+ public DataBoxEdgeDeviceStatus dataBoxEdgeDeviceStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().dataBoxEdgeDeviceStatus();
+ }
+
+ /**
+ * Get the serialNumber property: The Serial Number of Data Box Edge/Gateway device.
+ *
+ * @return the serialNumber value.
+ */
+ public String serialNumber() {
+ return this.innerProperties() == null ? null : this.innerProperties().serialNumber();
+ }
+
+ /**
+ * Get the description property: The Description of the Data Box Edge/Gateway device.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.innerProperties() == null ? null : this.innerProperties().description();
+ }
+
+ /**
+ * Get the modelDescription property: The description of the Data Box Edge/Gateway device model.
+ *
+ * @return the modelDescription value.
+ */
+ public String modelDescription() {
+ return this.innerProperties() == null ? null : this.innerProperties().modelDescription();
}
/**
@@ -297,7 +265,7 @@ public DataBoxEdgeDeviceInner withModelDescription(String modelDescription) {
* @return the deviceType value.
*/
public DeviceType deviceType() {
- return this.deviceType;
+ return this.innerProperties() == null ? null : this.innerProperties().deviceType();
}
/**
@@ -306,18 +274,7 @@ public DeviceType deviceType() {
* @return the friendlyName value.
*/
public String friendlyName() {
- return this.friendlyName;
- }
-
- /**
- * Set the friendlyName property: The Data Box Edge/Gateway device name.
- *
- * @param friendlyName the friendlyName value to set.
- * @return the DataBoxEdgeDeviceInner object itself.
- */
- public DataBoxEdgeDeviceInner withFriendlyName(String friendlyName) {
- this.friendlyName = friendlyName;
- return this;
+ return this.innerProperties() == null ? null : this.innerProperties().friendlyName();
}
/**
@@ -326,7 +283,7 @@ public DataBoxEdgeDeviceInner withFriendlyName(String friendlyName) {
* @return the culture value.
*/
public String culture() {
- return this.culture;
+ return this.innerProperties() == null ? null : this.innerProperties().culture();
}
/**
@@ -335,7 +292,7 @@ public String culture() {
* @return the deviceModel value.
*/
public String deviceModel() {
- return this.deviceModel;
+ return this.innerProperties() == null ? null : this.innerProperties().deviceModel();
}
/**
@@ -344,7 +301,7 @@ public String deviceModel() {
* @return the deviceSoftwareVersion value.
*/
public String deviceSoftwareVersion() {
- return this.deviceSoftwareVersion;
+ return this.innerProperties() == null ? null : this.innerProperties().deviceSoftwareVersion();
}
/**
@@ -353,7 +310,7 @@ public String deviceSoftwareVersion() {
* @return the deviceLocalCapacity value.
*/
public Long deviceLocalCapacity() {
- return this.deviceLocalCapacity;
+ return this.innerProperties() == null ? null : this.innerProperties().deviceLocalCapacity();
}
/**
@@ -362,7 +319,7 @@ public Long deviceLocalCapacity() {
* @return the timeZone value.
*/
public String timeZone() {
- return this.timeZone;
+ return this.innerProperties() == null ? null : this.innerProperties().timeZone();
}
/**
@@ -371,7 +328,7 @@ public String timeZone() {
* @return the deviceHcsVersion value.
*/
public String deviceHcsVersion() {
- return this.deviceHcsVersion;
+ return this.innerProperties() == null ? null : this.innerProperties().deviceHcsVersion();
}
/**
@@ -380,7 +337,7 @@ public String deviceHcsVersion() {
* @return the configuredRoleTypes value.
*/
public List configuredRoleTypes() {
- return this.configuredRoleTypes;
+ return this.innerProperties() == null ? null : this.innerProperties().configuredRoleTypes();
}
/**
@@ -389,7 +346,48 @@ public List configuredRoleTypes() {
* @return the nodeCount value.
*/
public Integer nodeCount() {
- return this.nodeCount;
+ return this.innerProperties() == null ? null : this.innerProperties().nodeCount();
+ }
+
+ /**
+ * Get the resourceMoveDetails property: The details of the move operation on this resource.
+ *
+ * @return the resourceMoveDetails value.
+ */
+ public ResourceMoveDetails resourceMoveDetails() {
+ return this.innerProperties() == null ? null : this.innerProperties().resourceMoveDetails();
+ }
+
+ /**
+ * Get the edgeProfile property: The details of Edge Profile for this resource.
+ *
+ * @return the edgeProfile value.
+ */
+ public EdgeProfile edgeProfile() {
+ return this.innerProperties() == null ? null : this.innerProperties().edgeProfile();
+ }
+
+ /**
+ * Get the dataResidency property: The details of data-residency related properties for this resource.
+ *
+ * @return the dataResidency value.
+ */
+ public DataResidency dataResidency() {
+ return this.innerProperties() == null ? null : this.innerProperties().dataResidency();
+ }
+
+ /**
+ * Set the dataResidency property: The details of data-residency related properties for this resource.
+ *
+ * @param dataResidency the dataResidency value to set.
+ * @return the DataBoxEdgeDeviceInner object itself.
+ */
+ public DataBoxEdgeDeviceInner withDataResidency(DataResidency dataResidency) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataBoxEdgeDeviceProperties();
+ }
+ this.innerProperties().withDataResidency(dataResidency);
+ return this;
}
/**
@@ -401,12 +399,20 @@ public Integer nodeCount() {
public void validate() {
super.validate();
if (location() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property location in model DataBoxEdgeDeviceInner"));
}
if (sku() != null) {
sku().validate();
}
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(DataBoxEdgeDeviceInner.class);
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceProperties.java
new file mode 100644
index 000000000000..96059d5230fd
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceProperties.java
@@ -0,0 +1,322 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeDeviceStatus;
+import com.azure.resourcemanager.databoxedge.models.DataResidency;
+import com.azure.resourcemanager.databoxedge.models.DeviceType;
+import com.azure.resourcemanager.databoxedge.models.EdgeProfile;
+import com.azure.resourcemanager.databoxedge.models.ResourceMoveDetails;
+import com.azure.resourcemanager.databoxedge.models.RoleTypes;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The properties of the Data Box Edge/Gateway device. */
+@Fluent
+public final class DataBoxEdgeDeviceProperties {
+ /*
+ * DataBoxEdge Device Properties
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The status of the Data Box Edge/Gateway device.
+ */
+ @JsonProperty(value = "dataBoxEdgeDeviceStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private DataBoxEdgeDeviceStatus dataBoxEdgeDeviceStatus;
+
+ /*
+ * The Serial Number of Data Box Edge/Gateway device.
+ */
+ @JsonProperty(value = "serialNumber", access = JsonProperty.Access.WRITE_ONLY)
+ private String serialNumber;
+
+ /*
+ * The Description of the Data Box Edge/Gateway device.
+ */
+ @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
+ private String description;
+
+ /*
+ * The description of the Data Box Edge/Gateway device model.
+ */
+ @JsonProperty(value = "modelDescription", access = JsonProperty.Access.WRITE_ONLY)
+ private String modelDescription;
+
+ /*
+ * The type of the Data Box Edge/Gateway device.
+ */
+ @JsonProperty(value = "deviceType", access = JsonProperty.Access.WRITE_ONLY)
+ private DeviceType deviceType;
+
+ /*
+ * The Data Box Edge/Gateway device name.
+ */
+ @JsonProperty(value = "friendlyName", access = JsonProperty.Access.WRITE_ONLY)
+ private String friendlyName;
+
+ /*
+ * The Data Box Edge/Gateway device culture.
+ */
+ @JsonProperty(value = "culture", access = JsonProperty.Access.WRITE_ONLY)
+ private String culture;
+
+ /*
+ * The Data Box Edge/Gateway device model.
+ */
+ @JsonProperty(value = "deviceModel", access = JsonProperty.Access.WRITE_ONLY)
+ private String deviceModel;
+
+ /*
+ * The Data Box Edge/Gateway device software version.
+ */
+ @JsonProperty(value = "deviceSoftwareVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String deviceSoftwareVersion;
+
+ /*
+ * The Data Box Edge/Gateway device local capacity in MB.
+ */
+ @JsonProperty(value = "deviceLocalCapacity", access = JsonProperty.Access.WRITE_ONLY)
+ private Long deviceLocalCapacity;
+
+ /*
+ * The Data Box Edge/Gateway device timezone.
+ */
+ @JsonProperty(value = "timeZone", access = JsonProperty.Access.WRITE_ONLY)
+ private String timeZone;
+
+ /*
+ * The device software version number of the device (eg: 1.2.18105.6).
+ */
+ @JsonProperty(value = "deviceHcsVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String deviceHcsVersion;
+
+ /*
+ * Type of compute roles configured.
+ */
+ @JsonProperty(value = "configuredRoleTypes", access = JsonProperty.Access.WRITE_ONLY)
+ private List configuredRoleTypes;
+
+ /*
+ * The number of nodes in the cluster.
+ */
+ @JsonProperty(value = "nodeCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer nodeCount;
+
+ /*
+ * The details of the move operation on this resource.
+ */
+ @JsonProperty(value = "resourceMoveDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private ResourceMoveDetails resourceMoveDetails;
+
+ /*
+ * The details of Edge Profile for this resource
+ */
+ @JsonProperty(value = "edgeProfile", access = JsonProperty.Access.WRITE_ONLY)
+ private EdgeProfile edgeProfile;
+
+ /*
+ * The details of data-residency related properties for this resource
+ */
+ @JsonProperty(value = "dataResidency")
+ private DataResidency dataResidency;
+
+ /** Creates an instance of DataBoxEdgeDeviceProperties class. */
+ public DataBoxEdgeDeviceProperties() {
+ }
+
+ /**
+ * Get the systemData property: DataBoxEdge Device Properties.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the dataBoxEdgeDeviceStatus property: The status of the Data Box Edge/Gateway device.
+ *
+ * @return the dataBoxEdgeDeviceStatus value.
+ */
+ public DataBoxEdgeDeviceStatus dataBoxEdgeDeviceStatus() {
+ return this.dataBoxEdgeDeviceStatus;
+ }
+
+ /**
+ * Get the serialNumber property: The Serial Number of Data Box Edge/Gateway device.
+ *
+ * @return the serialNumber value.
+ */
+ public String serialNumber() {
+ return this.serialNumber;
+ }
+
+ /**
+ * Get the description property: The Description of the Data Box Edge/Gateway device.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Get the modelDescription property: The description of the Data Box Edge/Gateway device model.
+ *
+ * @return the modelDescription value.
+ */
+ public String modelDescription() {
+ return this.modelDescription;
+ }
+
+ /**
+ * Get the deviceType property: The type of the Data Box Edge/Gateway device.
+ *
+ * @return the deviceType value.
+ */
+ public DeviceType deviceType() {
+ return this.deviceType;
+ }
+
+ /**
+ * Get the friendlyName property: The Data Box Edge/Gateway device name.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.friendlyName;
+ }
+
+ /**
+ * Get the culture property: The Data Box Edge/Gateway device culture.
+ *
+ * @return the culture value.
+ */
+ public String culture() {
+ return this.culture;
+ }
+
+ /**
+ * Get the deviceModel property: The Data Box Edge/Gateway device model.
+ *
+ * @return the deviceModel value.
+ */
+ public String deviceModel() {
+ return this.deviceModel;
+ }
+
+ /**
+ * Get the deviceSoftwareVersion property: The Data Box Edge/Gateway device software version.
+ *
+ * @return the deviceSoftwareVersion value.
+ */
+ public String deviceSoftwareVersion() {
+ return this.deviceSoftwareVersion;
+ }
+
+ /**
+ * Get the deviceLocalCapacity property: The Data Box Edge/Gateway device local capacity in MB.
+ *
+ * @return the deviceLocalCapacity value.
+ */
+ public Long deviceLocalCapacity() {
+ return this.deviceLocalCapacity;
+ }
+
+ /**
+ * Get the timeZone property: The Data Box Edge/Gateway device timezone.
+ *
+ * @return the timeZone value.
+ */
+ public String timeZone() {
+ return this.timeZone;
+ }
+
+ /**
+ * Get the deviceHcsVersion property: The device software version number of the device (eg: 1.2.18105.6).
+ *
+ * @return the deviceHcsVersion value.
+ */
+ public String deviceHcsVersion() {
+ return this.deviceHcsVersion;
+ }
+
+ /**
+ * Get the configuredRoleTypes property: Type of compute roles configured.
+ *
+ * @return the configuredRoleTypes value.
+ */
+ public List configuredRoleTypes() {
+ return this.configuredRoleTypes;
+ }
+
+ /**
+ * Get the nodeCount property: The number of nodes in the cluster.
+ *
+ * @return the nodeCount value.
+ */
+ public Integer nodeCount() {
+ return this.nodeCount;
+ }
+
+ /**
+ * Get the resourceMoveDetails property: The details of the move operation on this resource.
+ *
+ * @return the resourceMoveDetails value.
+ */
+ public ResourceMoveDetails resourceMoveDetails() {
+ return this.resourceMoveDetails;
+ }
+
+ /**
+ * Get the edgeProfile property: The details of Edge Profile for this resource.
+ *
+ * @return the edgeProfile value.
+ */
+ public EdgeProfile edgeProfile() {
+ return this.edgeProfile;
+ }
+
+ /**
+ * Get the dataResidency property: The details of data-residency related properties for this resource.
+ *
+ * @return the dataResidency value.
+ */
+ public DataResidency dataResidency() {
+ return this.dataResidency;
+ }
+
+ /**
+ * Set the dataResidency property: The details of data-residency related properties for this resource.
+ *
+ * @param dataResidency the dataResidency value to set.
+ * @return the DataBoxEdgeDeviceProperties object itself.
+ */
+ public DataBoxEdgeDeviceProperties withDataResidency(DataResidency dataResidency) {
+ this.dataResidency = dataResidency;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (resourceMoveDetails() != null) {
+ resourceMoveDetails().validate();
+ }
+ if (edgeProfile() != null) {
+ edgeProfile().validate();
+ }
+ if (dataResidency() != null) {
+ dataResidency().validate();
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDevicePropertiesPatch.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDevicePropertiesPatch.java
new file mode 100644
index 000000000000..11a9a43d0d09
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDevicePropertiesPatch.java
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.databoxedge.models.EdgeProfilePatch;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The Data Box Edge/Gateway device properties patch. */
+@Fluent
+public final class DataBoxEdgeDevicePropertiesPatch {
+ /*
+ * Edge Profile property of the Data Box Edge/Gateway device
+ */
+ @JsonProperty(value = "edgeProfile")
+ private EdgeProfilePatch edgeProfile;
+
+ /** Creates an instance of DataBoxEdgeDevicePropertiesPatch class. */
+ public DataBoxEdgeDevicePropertiesPatch() {
+ }
+
+ /**
+ * Get the edgeProfile property: Edge Profile property of the Data Box Edge/Gateway device.
+ *
+ * @return the edgeProfile value.
+ */
+ public EdgeProfilePatch edgeProfile() {
+ return this.edgeProfile;
+ }
+
+ /**
+ * Set the edgeProfile property: Edge Profile property of the Data Box Edge/Gateway device.
+ *
+ * @param edgeProfile the edgeProfile value to set.
+ * @return the DataBoxEdgeDevicePropertiesPatch object itself.
+ */
+ public DataBoxEdgeDevicePropertiesPatch withEdgeProfile(EdgeProfilePatch edgeProfile) {
+ this.edgeProfile = edgeProfile;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (edgeProfile() != null) {
+ edgeProfile().validate();
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ResourceTypeSkuInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeSkuInner.java
similarity index 53%
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 7cdc781fa780..91f3ed9f9769 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
@@ -5,65 +5,71 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.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.fasterxml.jackson.annotation.JsonIgnore;
+import com.azure.resourcemanager.databoxedge.models.SkuVersion;
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 {
/*
- * 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 +81,38 @@ 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;
+
+ /** Creates an instance of DataBoxEdgeSkuInner class. */
+ public DataBoxEdgeSkuInner() {
+ }
/**
* 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/DeviceCapacityInfoInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DeviceCapacityInfoInner.java
new file mode 100644
index 000000000000..191ceadb2c91
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DeviceCapacityInfoInner.java
@@ -0,0 +1,158 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
+import com.azure.resourcemanager.databoxedge.models.ClusterCapacityViewData;
+import com.azure.resourcemanager.databoxedge.models.ClusterStorageViewData;
+import com.azure.resourcemanager.databoxedge.models.HostCapacity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.Map;
+
+/** Object for Capturing DeviceCapacityInfo. */
+@Fluent
+public final class DeviceCapacityInfoInner extends ArmBaseModel {
+ /*
+ * The device capacity properties.
+ */
+ @JsonProperty(value = "properties")
+ private DeviceCapacityInfoProperties innerProperties;
+
+ /*
+ * Metadata pertaining to device capacity info.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of DeviceCapacityInfoInner class. */
+ public DeviceCapacityInfoInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The device capacity properties.
+ *
+ * @return the innerProperties value.
+ */
+ private DeviceCapacityInfoProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to device capacity info.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the timestamp property: Timestamp of request in UTC.
+ *
+ * @return the timestamp value.
+ */
+ public OffsetDateTime timestamp() {
+ return this.innerProperties() == null ? null : this.innerProperties().timestamp();
+ }
+
+ /**
+ * Set the timestamp property: Timestamp of request in UTC.
+ *
+ * @param timestamp the timestamp value to set.
+ * @return the DeviceCapacityInfoInner object itself.
+ */
+ public DeviceCapacityInfoInner withTimestamp(OffsetDateTime timestamp) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DeviceCapacityInfoProperties();
+ }
+ this.innerProperties().withTimestamp(timestamp);
+ return this;
+ }
+
+ /**
+ * Get the clusterStorageCapacityInfo property: Cluster capacity data for storage resources (CSV).
+ *
+ * @return the clusterStorageCapacityInfo value.
+ */
+ public ClusterStorageViewData clusterStorageCapacityInfo() {
+ return this.innerProperties() == null ? null : this.innerProperties().clusterStorageCapacityInfo();
+ }
+
+ /**
+ * Set the clusterStorageCapacityInfo property: Cluster capacity data for storage resources (CSV).
+ *
+ * @param clusterStorageCapacityInfo the clusterStorageCapacityInfo value to set.
+ * @return the DeviceCapacityInfoInner object itself.
+ */
+ public DeviceCapacityInfoInner withClusterStorageCapacityInfo(ClusterStorageViewData clusterStorageCapacityInfo) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DeviceCapacityInfoProperties();
+ }
+ this.innerProperties().withClusterStorageCapacityInfo(clusterStorageCapacityInfo);
+ return this;
+ }
+
+ /**
+ * Get the clusterComputeCapacityInfo property: Cluster capacity data for compute resources (Memory and GPU).
+ *
+ * @return the clusterComputeCapacityInfo value.
+ */
+ public ClusterCapacityViewData clusterComputeCapacityInfo() {
+ return this.innerProperties() == null ? null : this.innerProperties().clusterComputeCapacityInfo();
+ }
+
+ /**
+ * Set the clusterComputeCapacityInfo property: Cluster capacity data for compute resources (Memory and GPU).
+ *
+ * @param clusterComputeCapacityInfo the clusterComputeCapacityInfo value to set.
+ * @return the DeviceCapacityInfoInner object itself.
+ */
+ public DeviceCapacityInfoInner withClusterComputeCapacityInfo(ClusterCapacityViewData clusterComputeCapacityInfo) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DeviceCapacityInfoProperties();
+ }
+ this.innerProperties().withClusterComputeCapacityInfo(clusterComputeCapacityInfo);
+ return this;
+ }
+
+ /**
+ * Get the nodeCapacityInfos property: The dictionary of individual node names and node capacities in the cluster.
+ *
+ * @return the nodeCapacityInfos value.
+ */
+ public Map nodeCapacityInfos() {
+ return this.innerProperties() == null ? null : this.innerProperties().nodeCapacityInfos();
+ }
+
+ /**
+ * Set the nodeCapacityInfos property: The dictionary of individual node names and node capacities in the cluster.
+ *
+ * @param nodeCapacityInfos the nodeCapacityInfos value to set.
+ * @return the DeviceCapacityInfoInner object itself.
+ */
+ public DeviceCapacityInfoInner withNodeCapacityInfos(Map nodeCapacityInfos) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DeviceCapacityInfoProperties();
+ }
+ this.innerProperties().withNodeCapacityInfos(nodeCapacityInfos);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DeviceCapacityInfoProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DeviceCapacityInfoProperties.java
new file mode 100644
index 000000000000..22d800702dea
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DeviceCapacityInfoProperties.java
@@ -0,0 +1,153 @@
+// 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.resourcemanager.databoxedge.models.ClusterCapacityViewData;
+import com.azure.resourcemanager.databoxedge.models.ClusterStorageViewData;
+import com.azure.resourcemanager.databoxedge.models.HostCapacity;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.Map;
+
+/** The properties of Device Capacity Info. */
+@Fluent
+public final class DeviceCapacityInfoProperties {
+ /*
+ * Timestamp of request in UTC
+ */
+ @JsonProperty(value = "timeStamp")
+ private OffsetDateTime timestamp;
+
+ /*
+ * Cluster capacity data for storage resources (CSV).
+ */
+ @JsonProperty(value = "clusterStorageCapacityInfo")
+ private ClusterStorageViewData clusterStorageCapacityInfo;
+
+ /*
+ * Cluster capacity data for compute resources (Memory and GPU).
+ */
+ @JsonProperty(value = "clusterComputeCapacityInfo")
+ private ClusterCapacityViewData clusterComputeCapacityInfo;
+
+ /*
+ * The dictionary of individual node names and node capacities in the cluster.
+ */
+ @JsonProperty(value = "nodeCapacityInfos")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map nodeCapacityInfos;
+
+ /** Creates an instance of DeviceCapacityInfoProperties class. */
+ public DeviceCapacityInfoProperties() {
+ }
+
+ /**
+ * Get the timestamp property: Timestamp of request in UTC.
+ *
+ * @return the timestamp value.
+ */
+ public OffsetDateTime timestamp() {
+ return this.timestamp;
+ }
+
+ /**
+ * Set the timestamp property: Timestamp of request in UTC.
+ *
+ * @param timestamp the timestamp value to set.
+ * @return the DeviceCapacityInfoProperties object itself.
+ */
+ public DeviceCapacityInfoProperties withTimestamp(OffsetDateTime timestamp) {
+ this.timestamp = timestamp;
+ return this;
+ }
+
+ /**
+ * Get the clusterStorageCapacityInfo property: Cluster capacity data for storage resources (CSV).
+ *
+ * @return the clusterStorageCapacityInfo value.
+ */
+ public ClusterStorageViewData clusterStorageCapacityInfo() {
+ return this.clusterStorageCapacityInfo;
+ }
+
+ /**
+ * Set the clusterStorageCapacityInfo property: Cluster capacity data for storage resources (CSV).
+ *
+ * @param clusterStorageCapacityInfo the clusterStorageCapacityInfo value to set.
+ * @return the DeviceCapacityInfoProperties object itself.
+ */
+ public DeviceCapacityInfoProperties withClusterStorageCapacityInfo(
+ ClusterStorageViewData clusterStorageCapacityInfo) {
+ this.clusterStorageCapacityInfo = clusterStorageCapacityInfo;
+ return this;
+ }
+
+ /**
+ * Get the clusterComputeCapacityInfo property: Cluster capacity data for compute resources (Memory and GPU).
+ *
+ * @return the clusterComputeCapacityInfo value.
+ */
+ public ClusterCapacityViewData clusterComputeCapacityInfo() {
+ return this.clusterComputeCapacityInfo;
+ }
+
+ /**
+ * Set the clusterComputeCapacityInfo property: Cluster capacity data for compute resources (Memory and GPU).
+ *
+ * @param clusterComputeCapacityInfo the clusterComputeCapacityInfo value to set.
+ * @return the DeviceCapacityInfoProperties object itself.
+ */
+ public DeviceCapacityInfoProperties withClusterComputeCapacityInfo(
+ ClusterCapacityViewData clusterComputeCapacityInfo) {
+ this.clusterComputeCapacityInfo = clusterComputeCapacityInfo;
+ return this;
+ }
+
+ /**
+ * Get the nodeCapacityInfos property: The dictionary of individual node names and node capacities in the cluster.
+ *
+ * @return the nodeCapacityInfos value.
+ */
+ public Map nodeCapacityInfos() {
+ return this.nodeCapacityInfos;
+ }
+
+ /**
+ * Set the nodeCapacityInfos property: The dictionary of individual node names and node capacities in the cluster.
+ *
+ * @param nodeCapacityInfos the nodeCapacityInfos value to set.
+ * @return the DeviceCapacityInfoProperties object itself.
+ */
+ public DeviceCapacityInfoProperties withNodeCapacityInfos(Map nodeCapacityInfos) {
+ this.nodeCapacityInfos = nodeCapacityInfos;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (clusterStorageCapacityInfo() != null) {
+ clusterStorageCapacityInfo().validate();
+ }
+ if (clusterComputeCapacityInfo() != null) {
+ clusterComputeCapacityInfo().validate();
+ }
+ if (nodeCapacityInfos() != null) {
+ nodeCapacityInfos()
+ .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/DeviceCapacityRequestInfoProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DeviceCapacityRequestInfoProperties.java
new file mode 100644
index 000000000000..b655c16bd84f
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DeviceCapacityRequestInfoProperties.java
@@ -0,0 +1,95 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.VmPlacementRequestResult;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties of Device Capacity Request Info containing VM's to be checked and their corresponding results. */
+@Fluent
+public final class DeviceCapacityRequestInfoProperties {
+ /*
+ * Array containing the sizes of the VMs for checking if its feasible to create them on the appliance.
+ */
+ @JsonProperty(value = "vmPlacementQuery", required = true)
+ private List> vmPlacementQuery;
+
+ /*
+ * Array of the VMs of the sizes in VmSizes can be provisioned on the appliance.
+ */
+ @JsonProperty(value = "vmPlacementResults")
+ private List vmPlacementResults;
+
+ /** Creates an instance of DeviceCapacityRequestInfoProperties class. */
+ public DeviceCapacityRequestInfoProperties() {
+ }
+
+ /**
+ * Get the vmPlacementQuery property: Array containing the sizes of the VMs for checking if its feasible to create
+ * them on the appliance.
+ *
+ * @return the vmPlacementQuery value.
+ */
+ public List> vmPlacementQuery() {
+ return this.vmPlacementQuery;
+ }
+
+ /**
+ * Set the vmPlacementQuery property: Array containing the sizes of the VMs for checking if its feasible to create
+ * them on the appliance.
+ *
+ * @param vmPlacementQuery the vmPlacementQuery value to set.
+ * @return the DeviceCapacityRequestInfoProperties object itself.
+ */
+ public DeviceCapacityRequestInfoProperties withVmPlacementQuery(List