diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 1addc6b6a33f3..e58c75ae02b4a 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -338,7 +338,7 @@ com.azure.resourcemanager:azure-resourcemanager-batchai;1.0.0-beta.1;1.0.0-beta.
com.azure.resourcemanager:azure-resourcemanager-signalr;1.0.0-beta.9;1.0.0-beta.10
com.azure.resourcemanager:azure-resourcemanager-cognitiveservices;1.1.0;1.2.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-customerinsights;1.0.0-beta.3;1.0.0-beta.4
-com.azure.resourcemanager:azure-resourcemanager-databox;1.0.0-beta.4;1.0.0-beta.5
+com.azure.resourcemanager:azure-resourcemanager-databox;1.0.0-beta.4;1.0.0
com.azure.resourcemanager:azure-resourcemanager-datamigration;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-devspaces;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-devtestlabs;1.1.0;1.2.0-beta.1
diff --git a/sdk/databox/azure-resourcemanager-databox/CHANGELOG.md b/sdk/databox/azure-resourcemanager-databox/CHANGELOG.md
index 021a58da219b5..24c2fd33d6536 100644
--- a/sdk/databox/azure-resourcemanager-databox/CHANGELOG.md
+++ b/sdk/databox/azure-resourcemanager-databox/CHANGELOG.md
@@ -1,14 +1,120 @@
# Release History
-## 1.0.0-beta.5 (Unreleased)
+## 1.0.0 (2024-12-24)
-### Features Added
+- Azure Resource Manager DataBox client library for Java. This package contains Microsoft Azure SDK for DataBox Management SDK. Package tag package-2022-12. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.DataboxJobSecrets` was modified
+
+* `error()` was removed
+* `dcAccessSecurityCode()` was removed
+
+#### `models.DataBoxHeavyJobDetails` was modified
+
+* `actions()` was removed
+* `datacenterAddress()` was removed
+* `reverseShipmentLabelSasKey()` was removed
+* `deviceErasureDetails()` was removed
+* `jobStages()` was removed
+* `deliveryPackage()` was removed
+* `returnPackage()` was removed
+* `lastMitigationActionOnJob()` was removed
+* `chainOfCustodySasKey()` was removed
+* `dataCenterCode()` was removed
+* `copyLogDetails()` was removed
+
+#### `models.DataBoxDiskJobSecrets` was modified
+
+* `dcAccessSecurityCode()` was removed
+* `error()` was removed
+
+#### `models.PreferencesValidationResponseProperties` was modified
+
+* `error()` was removed
+
+#### `models.DataBoxJobDetails` was modified
+
+* `lastMitigationActionOnJob()` was removed
+* `copyLogDetails()` was removed
+* `dataCenterCode()` was removed
+* `actions()` was removed
+* `deliveryPackage()` was removed
+* `chainOfCustodySasKey()` was removed
+* `datacenterAddress()` was removed
+* `jobStages()` was removed
+* `reverseShipmentLabelSasKey()` was removed
+* `returnPackage()` was removed
+* `deviceErasureDetails()` was removed
+
+#### `models.DataBoxDiskJobDetails` was modified
+
+* `actions()` was removed
+* `chainOfCustodySasKey()` was removed
+* `copyLogDetails()` was removed
+* `reverseShipmentLabelSasKey()` was removed
+* `jobStages()` was removed
+* `deviceErasureDetails()` was removed
+* `dataCenterCode()` was removed
+* `deliveryPackage()` was removed
+* `datacenterAddress()` was removed
+* `returnPackage()` was removed
+* `lastMitigationActionOnJob()` was removed
+
+#### `models.DataTransferDetailsValidationResponseProperties` was modified
+
+* `error()` was removed
+
+#### `models.CustomerDiskJobSecrets` was modified
+
+* `dcAccessSecurityCode()` was removed
+* `error()` was removed
+
+#### `models.DatacenterAddressLocationResponse` was modified
+
+* `dataCenterAzureLocation()` was removed
+* `supportedCarriersForReturnShipment()` was removed
+
+#### `models.CreateOrderLimitForSubscriptionValidationResponseProperties` was modified
+
+* `error()` was removed
-### Other Changes
+#### `models.SkuAvailabilityValidationResponseProperties` was modified
+
+* `error()` was removed
+
+#### `models.AddressValidationProperties` was modified
+
+* `error()` was removed
+
+#### `models.DataBoxCustomerDiskJobDetails` was modified
+
+* `returnPackage()` was removed
+* `deliveryPackage()` was removed
+* `actions()` was removed
+* `reverseShipmentLabelSasKey()` was removed
+* `deviceErasureDetails()` was removed
+* `dataCenterCode()` was removed
+* `chainOfCustodySasKey()` was removed
+* `datacenterAddress()` was removed
+* `jobStages()` was removed
+* `copyLogDetails()` was removed
+* `lastMitigationActionOnJob()` was removed
+
+#### `models.DatacenterAddressInstructionResponse` was modified
+
+* `supportedCarriersForReturnShipment()` was removed
+* `dataCenterAzureLocation()` was removed
+
+#### `models.SubscriptionIsAllowedToCreateJobValidationResponseProperties` was modified
+
+* `error()` was removed
+
+#### `models.DataBoxHeavyJobSecrets` was modified
+
+* `error()` was removed
+* `dcAccessSecurityCode()` was removed
## 1.0.0-beta.4 (2024-10-31)
diff --git a/sdk/databox/azure-resourcemanager-databox/README.md b/sdk/databox/azure-resourcemanager-databox/README.md
index 73a5732dbd29d..0c69d7ba40dbb 100644
--- a/sdk/databox/azure-resourcemanager-databox/README.md
+++ b/sdk/databox/azure-resourcemanager-databox/README.md
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-databox
- 1.0.0-beta.4
+ 1.0.0
```
[//]: # ({x-version-update-end})
diff --git a/sdk/databox/azure-resourcemanager-databox/pom.xml b/sdk/databox/azure-resourcemanager-databox/pom.xml
index a916ad2ab6e93..395b3e67fa0d9 100644
--- a/sdk/databox/azure-resourcemanager-databox/pom.xml
+++ b/sdk/databox/azure-resourcemanager-databox/pom.xml
@@ -14,7 +14,7 @@
com.azure.resourcemanager
azure-resourcemanager-databox
- 1.0.0-beta.5
+ 1.0.0
jar
Microsoft Azure SDK for DataBox Management
@@ -45,7 +45,6 @@
UTF-8
0
0
- true
false
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/DataBoxManager.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/DataBoxManager.java
index 15aabc937c817..eca58985edc63 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/DataBoxManager.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/DataBoxManager.java
@@ -11,6 +11,7 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
@@ -19,7 +20,6 @@
import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
-import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
@@ -216,7 +216,7 @@ public DataBoxManager authenticate(TokenCredential credential, AzureProfile prof
.append("-")
.append("com.azure.resourcemanager.databox")
.append("/")
- .append("1.0.0-beta.4");
+ .append("1.0.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -249,7 +249,7 @@ public DataBoxManager authenticate(TokenCredential credential, AzureProfile prof
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, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/AddressValidationProperties.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/AddressValidationProperties.java
index 3a430f9c19436..915d760ae6364 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/AddressValidationProperties.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/AddressValidationProperties.java
@@ -31,11 +31,6 @@ public final class AddressValidationProperties extends ValidationInputResponse {
*/
private List alternateAddresses;
- /*
- * Error code and message of validation response.
- */
- private CloudError error;
-
/**
* Creates an instance of AddressValidationProperties class.
*/
@@ -70,16 +65,6 @@ public List alternateAddresses() {
return this.alternateAddresses;
}
- /**
- * Get the error property: Error code and message of validation response.
- *
- * @return the error value.
- */
- @Override
- public CloudError error() {
- return this.error;
- }
-
/**
* Validates the instance.
*
@@ -122,7 +107,7 @@ public static AddressValidationProperties fromJson(JsonReader jsonReader) throws
reader.nextToken();
if ("error".equals(fieldName)) {
- deserializedAddressValidationProperties.error = CloudError.fromJson(reader);
+ deserializedAddressValidationProperties.withError(CloudError.fromJson(reader));
} else if ("validationType".equals(fieldName)) {
deserializedAddressValidationProperties.validationType
= ValidationInputDiscriminator.fromString(reader.getString());
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/CopyLogDetails.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/CopyLogDetails.java
index bb5608dde190a..86ec072ad2cd3 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/CopyLogDetails.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/CopyLogDetails.java
@@ -19,7 +19,7 @@ public class CopyLogDetails implements JsonSerializable {
/*
* Indicates the type of job details.
*/
- private ClassDiscriminator copyLogDetailsType = ClassDiscriminator.fromString("CopyLogDetails");
+ private ClassDiscriminator copyLogDetailsType;
/**
* Creates an instance of CopyLogDetails class.
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/CreateOrderLimitForSubscriptionValidationResponseProperties.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/CreateOrderLimitForSubscriptionValidationResponseProperties.java
index 2f5a8b1eea357..11adaee34cf08 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/CreateOrderLimitForSubscriptionValidationResponseProperties.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/CreateOrderLimitForSubscriptionValidationResponseProperties.java
@@ -25,11 +25,6 @@ public final class CreateOrderLimitForSubscriptionValidationResponseProperties e
*/
private ValidationStatus status;
- /*
- * Error code and message of validation response.
- */
- private CloudError error;
-
/**
* Creates an instance of CreateOrderLimitForSubscriptionValidationResponseProperties class.
*/
@@ -55,16 +50,6 @@ public ValidationStatus status() {
return this.status;
}
- /**
- * Get the error property: Error code and message of validation response.
- *
- * @return the error value.
- */
- @Override
- public CloudError error() {
- return this.error;
- }
-
/**
* Validates the instance.
*
@@ -107,8 +92,8 @@ public static CreateOrderLimitForSubscriptionValidationResponseProperties fromJs
reader.nextToken();
if ("error".equals(fieldName)) {
- deserializedCreateOrderLimitForSubscriptionValidationResponseProperties.error
- = CloudError.fromJson(reader);
+ deserializedCreateOrderLimitForSubscriptionValidationResponseProperties
+ .withError(CloudError.fromJson(reader));
} else if ("validationType".equals(fieldName)) {
deserializedCreateOrderLimitForSubscriptionValidationResponseProperties.validationType
= ValidationInputDiscriminator.fromString(reader.getString());
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/CustomerDiskJobSecrets.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/CustomerDiskJobSecrets.java
index 6466bfcbe2606..f75cab5cb18ee 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/CustomerDiskJobSecrets.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/CustomerDiskJobSecrets.java
@@ -31,16 +31,6 @@ public final class CustomerDiskJobSecrets extends JobSecrets {
*/
private String carrierAccountNumber;
- /*
- * Error while fetching the secrets.
- */
- private CloudError error;
-
- /*
- * Dc Access Security Code for Customer Managed Shipping
- */
- private DcAccessSecurityCode dcAccessSecurityCode;
-
/**
* Creates an instance of CustomerDiskJobSecrets class.
*/
@@ -75,26 +65,6 @@ public String carrierAccountNumber() {
return this.carrierAccountNumber;
}
- /**
- * Get the error property: Error while fetching the secrets.
- *
- * @return the error value.
- */
- @Override
- public CloudError error() {
- return this.error;
- }
-
- /**
- * Get the dcAccessSecurityCode property: Dc Access Security Code for Customer Managed Shipping.
- *
- * @return the dcAccessSecurityCode value.
- */
- @Override
- public DcAccessSecurityCode dcAccessSecurityCode() {
- return this.dcAccessSecurityCode;
- }
-
/**
* Validates the instance.
*
@@ -140,9 +110,9 @@ public static CustomerDiskJobSecrets fromJson(JsonReader jsonReader) throws IOEx
reader.nextToken();
if ("dcAccessSecurityCode".equals(fieldName)) {
- deserializedCustomerDiskJobSecrets.dcAccessSecurityCode = DcAccessSecurityCode.fromJson(reader);
+ deserializedCustomerDiskJobSecrets.withDcAccessSecurityCode(DcAccessSecurityCode.fromJson(reader));
} else if ("error".equals(fieldName)) {
- deserializedCustomerDiskJobSecrets.error = CloudError.fromJson(reader);
+ deserializedCustomerDiskJobSecrets.withError(CloudError.fromJson(reader));
} else if ("jobSecretsType".equals(fieldName)) {
deserializedCustomerDiskJobSecrets.jobSecretsType
= ClassDiscriminator.fromString(reader.getString());
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataAccountDetails.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataAccountDetails.java
index 8a95ca089b854..a2a5fa7165356 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataAccountDetails.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataAccountDetails.java
@@ -19,7 +19,7 @@ public class DataAccountDetails implements JsonSerializable
/*
* Account Type of the data to be transferred.
*/
- private DataAccountType dataAccountType = DataAccountType.fromString("DataAccountDetails");
+ private DataAccountType dataAccountType;
/*
* Password for all the shares to be created on the device. Should not be passed for TransferType:ExportFromAzure
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxCustomerDiskJobDetails.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxCustomerDiskJobDetails.java
index 9981a9e5f5968..9fb70fac83170 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxCustomerDiskJobDetails.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxCustomerDiskJobDetails.java
@@ -53,61 +53,6 @@ public final class DataBoxCustomerDiskJobDetails extends JobDetails {
*/
private Boolean enableManifestBackup;
- /*
- * DataCenter code.
- */
- private DataCenterCode dataCenterCode;
-
- /*
- * Datacenter address to ship to, for the given sku and storage location.
- */
- private DatacenterAddressResponse datacenterAddress;
-
- /*
- * Last mitigation action performed on the job.
- */
- private LastMitigationActionOnJob lastMitigationActionOnJob;
-
- /*
- * Available actions on the job.
- */
- private List actions;
-
- /*
- * Holds device data erasure details
- */
- private DeviceErasureDetails deviceErasureDetails;
-
- /*
- * Shared access key to download the chain of custody logs
- */
- private String chainOfCustodySasKey;
-
- /*
- * Shared access key to download the return shipment label
- */
- private String reverseShipmentLabelSasKey;
-
- /*
- * List of copy log details.
- */
- private List copyLogDetails;
-
- /*
- * Return package shipping details.
- */
- private PackageShippingDetails returnPackage;
-
- /*
- * Delivery package shipping details.
- */
- private PackageShippingDetails deliveryPackage;
-
- /*
- * List of stages that run in the job.
- */
- private List jobStages;
-
/**
* Creates an instance of DataBoxCustomerDiskJobDetails class.
*/
@@ -218,116 +163,6 @@ public DataBoxCustomerDiskJobDetails withEnableManifestBackup(Boolean enableMani
return this;
}
- /**
- * Get the dataCenterCode property: DataCenter code.
- *
- * @return the dataCenterCode value.
- */
- @Override
- public DataCenterCode dataCenterCode() {
- return this.dataCenterCode;
- }
-
- /**
- * Get the datacenterAddress property: Datacenter address to ship to, for the given sku and storage location.
- *
- * @return the datacenterAddress value.
- */
- @Override
- public DatacenterAddressResponse datacenterAddress() {
- return this.datacenterAddress;
- }
-
- /**
- * Get the lastMitigationActionOnJob property: Last mitigation action performed on the job.
- *
- * @return the lastMitigationActionOnJob value.
- */
- @Override
- public LastMitigationActionOnJob lastMitigationActionOnJob() {
- return this.lastMitigationActionOnJob;
- }
-
- /**
- * Get the actions property: Available actions on the job.
- *
- * @return the actions value.
- */
- @Override
- public List actions() {
- return this.actions;
- }
-
- /**
- * Get the deviceErasureDetails property: Holds device data erasure details.
- *
- * @return the deviceErasureDetails value.
- */
- @Override
- public DeviceErasureDetails deviceErasureDetails() {
- return this.deviceErasureDetails;
- }
-
- /**
- * Get the chainOfCustodySasKey property: Shared access key to download the chain of custody logs.
- *
- * @return the chainOfCustodySasKey value.
- */
- @Override
- public String chainOfCustodySasKey() {
- return this.chainOfCustodySasKey;
- }
-
- /**
- * Get the reverseShipmentLabelSasKey property: Shared access key to download the return shipment label.
- *
- * @return the reverseShipmentLabelSasKey value.
- */
- @Override
- public String reverseShipmentLabelSasKey() {
- return this.reverseShipmentLabelSasKey;
- }
-
- /**
- * Get the copyLogDetails property: List of copy log details.
- *
- * @return the copyLogDetails value.
- */
- @Override
- public List copyLogDetails() {
- return this.copyLogDetails;
- }
-
- /**
- * Get the returnPackage property: Return package shipping details.
- *
- * @return the returnPackage value.
- */
- @Override
- public PackageShippingDetails returnPackage() {
- return this.returnPackage;
- }
-
- /**
- * Get the deliveryPackage property: Delivery package shipping details.
- *
- * @return the deliveryPackage value.
- */
- @Override
- public PackageShippingDetails deliveryPackage() {
- return this.deliveryPackage;
- }
-
- /**
- * Get the jobStages property: List of stages that run in the job.
- *
- * @return the jobStages value.
- */
- @Override
- public List jobStages() {
- return this.jobStages;
- }
-
/**
* {@inheritDoc}
*/
@@ -530,13 +365,15 @@ public static DataBoxCustomerDiskJobDetails fromJson(JsonReader jsonReader) thro
deserializedDataBoxCustomerDiskJobDetails.withContactDetails(ContactDetails.fromJson(reader));
} else if ("jobStages".equals(fieldName)) {
List jobStages = reader.readArray(reader1 -> JobStages.fromJson(reader1));
- deserializedDataBoxCustomerDiskJobDetails.jobStages = jobStages;
+ deserializedDataBoxCustomerDiskJobDetails.withJobStages(jobStages);
} else if ("shippingAddress".equals(fieldName)) {
deserializedDataBoxCustomerDiskJobDetails.withShippingAddress(ShippingAddress.fromJson(reader));
} else if ("deliveryPackage".equals(fieldName)) {
- deserializedDataBoxCustomerDiskJobDetails.deliveryPackage = PackageShippingDetails.fromJson(reader);
+ deserializedDataBoxCustomerDiskJobDetails
+ .withDeliveryPackage(PackageShippingDetails.fromJson(reader));
} else if ("returnPackage".equals(fieldName)) {
- deserializedDataBoxCustomerDiskJobDetails.returnPackage = PackageShippingDetails.fromJson(reader);
+ deserializedDataBoxCustomerDiskJobDetails
+ .withReturnPackage(PackageShippingDetails.fromJson(reader));
} else if ("dataImportDetails".equals(fieldName)) {
List dataImportDetails
= reader.readArray(reader1 -> DataImportDetails.fromJson(reader1));
@@ -552,14 +389,14 @@ public static DataBoxCustomerDiskJobDetails fromJson(JsonReader jsonReader) thro
.withReverseShippingDetails(ReverseShippingDetails.fromJson(reader));
} else if ("copyLogDetails".equals(fieldName)) {
List copyLogDetails = reader.readArray(reader1 -> CopyLogDetails.fromJson(reader1));
- deserializedDataBoxCustomerDiskJobDetails.copyLogDetails = copyLogDetails;
+ deserializedDataBoxCustomerDiskJobDetails.withCopyLogDetails(copyLogDetails);
} else if ("reverseShipmentLabelSasKey".equals(fieldName)) {
- deserializedDataBoxCustomerDiskJobDetails.reverseShipmentLabelSasKey = reader.getString();
+ deserializedDataBoxCustomerDiskJobDetails.withReverseShipmentLabelSasKey(reader.getString());
} else if ("chainOfCustodySasKey".equals(fieldName)) {
- deserializedDataBoxCustomerDiskJobDetails.chainOfCustodySasKey = reader.getString();
+ deserializedDataBoxCustomerDiskJobDetails.withChainOfCustodySasKey(reader.getString());
} else if ("deviceErasureDetails".equals(fieldName)) {
- deserializedDataBoxCustomerDiskJobDetails.deviceErasureDetails
- = DeviceErasureDetails.fromJson(reader);
+ deserializedDataBoxCustomerDiskJobDetails
+ .withDeviceErasureDetails(DeviceErasureDetails.fromJson(reader));
} else if ("keyEncryptionKey".equals(fieldName)) {
deserializedDataBoxCustomerDiskJobDetails.withKeyEncryptionKey(KeyEncryptionKey.fromJson(reader));
} else if ("expectedDataSizeInTeraBytes".equals(fieldName)) {
@@ -568,16 +405,16 @@ public static DataBoxCustomerDiskJobDetails fromJson(JsonReader jsonReader) thro
} else if ("actions".equals(fieldName)) {
List actions
= reader.readArray(reader1 -> CustomerResolutionCode.fromString(reader1.getString()));
- deserializedDataBoxCustomerDiskJobDetails.actions = actions;
+ deserializedDataBoxCustomerDiskJobDetails.withActions(actions);
} else if ("lastMitigationActionOnJob".equals(fieldName)) {
- deserializedDataBoxCustomerDiskJobDetails.lastMitigationActionOnJob
- = LastMitigationActionOnJob.fromJson(reader);
+ deserializedDataBoxCustomerDiskJobDetails
+ .withLastMitigationActionOnJob(LastMitigationActionOnJob.fromJson(reader));
} else if ("datacenterAddress".equals(fieldName)) {
- deserializedDataBoxCustomerDiskJobDetails.datacenterAddress
- = DatacenterAddressResponse.fromJson(reader);
+ deserializedDataBoxCustomerDiskJobDetails
+ .withDatacenterAddress(DatacenterAddressResponse.fromJson(reader));
} else if ("dataCenterCode".equals(fieldName)) {
- deserializedDataBoxCustomerDiskJobDetails.dataCenterCode
- = DataCenterCode.fromString(reader.getString());
+ deserializedDataBoxCustomerDiskJobDetails
+ .withDataCenterCode(DataCenterCode.fromString(reader.getString()));
} else if ("returnToCustomerPackageDetails".equals(fieldName)) {
deserializedDataBoxCustomerDiskJobDetails.returnToCustomerPackageDetails
= PackageCarrierDetails.fromJson(reader);
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxDiskJobDetails.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxDiskJobDetails.java
index 5f5c0ca575e53..8e874d6304642 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxDiskJobDetails.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxDiskJobDetails.java
@@ -55,61 +55,6 @@ public final class DataBoxDiskJobDetails extends JobDetails {
*/
private String passkey;
- /*
- * DataCenter code.
- */
- private DataCenterCode dataCenterCode;
-
- /*
- * Datacenter address to ship to, for the given sku and storage location.
- */
- private DatacenterAddressResponse datacenterAddress;
-
- /*
- * Last mitigation action performed on the job.
- */
- private LastMitigationActionOnJob lastMitigationActionOnJob;
-
- /*
- * Available actions on the job.
- */
- private List actions;
-
- /*
- * Holds device data erasure details
- */
- private DeviceErasureDetails deviceErasureDetails;
-
- /*
- * Shared access key to download the chain of custody logs
- */
- private String chainOfCustodySasKey;
-
- /*
- * Shared access key to download the return shipment label
- */
- private String reverseShipmentLabelSasKey;
-
- /*
- * List of copy log details.
- */
- private List copyLogDetails;
-
- /*
- * Return package shipping details.
- */
- private PackageShippingDetails returnPackage;
-
- /*
- * Delivery package shipping details.
- */
- private PackageShippingDetails deliveryPackage;
-
- /*
- * List of stages that run in the job.
- */
- private List jobStages;
-
/**
* Creates an instance of DataBoxDiskJobDetails class.
*/
@@ -207,116 +152,6 @@ public DataBoxDiskJobDetails withPasskey(String passkey) {
return this;
}
- /**
- * Get the dataCenterCode property: DataCenter code.
- *
- * @return the dataCenterCode value.
- */
- @Override
- public DataCenterCode dataCenterCode() {
- return this.dataCenterCode;
- }
-
- /**
- * Get the datacenterAddress property: Datacenter address to ship to, for the given sku and storage location.
- *
- * @return the datacenterAddress value.
- */
- @Override
- public DatacenterAddressResponse datacenterAddress() {
- return this.datacenterAddress;
- }
-
- /**
- * Get the lastMitigationActionOnJob property: Last mitigation action performed on the job.
- *
- * @return the lastMitigationActionOnJob value.
- */
- @Override
- public LastMitigationActionOnJob lastMitigationActionOnJob() {
- return this.lastMitigationActionOnJob;
- }
-
- /**
- * Get the actions property: Available actions on the job.
- *
- * @return the actions value.
- */
- @Override
- public List actions() {
- return this.actions;
- }
-
- /**
- * Get the deviceErasureDetails property: Holds device data erasure details.
- *
- * @return the deviceErasureDetails value.
- */
- @Override
- public DeviceErasureDetails deviceErasureDetails() {
- return this.deviceErasureDetails;
- }
-
- /**
- * Get the chainOfCustodySasKey property: Shared access key to download the chain of custody logs.
- *
- * @return the chainOfCustodySasKey value.
- */
- @Override
- public String chainOfCustodySasKey() {
- return this.chainOfCustodySasKey;
- }
-
- /**
- * Get the reverseShipmentLabelSasKey property: Shared access key to download the return shipment label.
- *
- * @return the reverseShipmentLabelSasKey value.
- */
- @Override
- public String reverseShipmentLabelSasKey() {
- return this.reverseShipmentLabelSasKey;
- }
-
- /**
- * Get the copyLogDetails property: List of copy log details.
- *
- * @return the copyLogDetails value.
- */
- @Override
- public List copyLogDetails() {
- return this.copyLogDetails;
- }
-
- /**
- * Get the returnPackage property: Return package shipping details.
- *
- * @return the returnPackage value.
- */
- @Override
- public PackageShippingDetails returnPackage() {
- return this.returnPackage;
- }
-
- /**
- * Get the deliveryPackage property: Delivery package shipping details.
- *
- * @return the deliveryPackage value.
- */
- @Override
- public PackageShippingDetails deliveryPackage() {
- return this.deliveryPackage;
- }
-
- /**
- * Get the jobStages property: List of stages that run in the job.
- *
- * @return the jobStages value.
- */
- @Override
- public List jobStages() {
- return this.jobStages;
- }
-
/**
* {@inheritDoc}
*/
@@ -498,13 +333,13 @@ public static DataBoxDiskJobDetails fromJson(JsonReader jsonReader) throws IOExc
deserializedDataBoxDiskJobDetails.withContactDetails(ContactDetails.fromJson(reader));
} else if ("jobStages".equals(fieldName)) {
List jobStages = reader.readArray(reader1 -> JobStages.fromJson(reader1));
- deserializedDataBoxDiskJobDetails.jobStages = jobStages;
+ deserializedDataBoxDiskJobDetails.withJobStages(jobStages);
} else if ("shippingAddress".equals(fieldName)) {
deserializedDataBoxDiskJobDetails.withShippingAddress(ShippingAddress.fromJson(reader));
} else if ("deliveryPackage".equals(fieldName)) {
- deserializedDataBoxDiskJobDetails.deliveryPackage = PackageShippingDetails.fromJson(reader);
+ deserializedDataBoxDiskJobDetails.withDeliveryPackage(PackageShippingDetails.fromJson(reader));
} else if ("returnPackage".equals(fieldName)) {
- deserializedDataBoxDiskJobDetails.returnPackage = PackageShippingDetails.fromJson(reader);
+ deserializedDataBoxDiskJobDetails.withReturnPackage(PackageShippingDetails.fromJson(reader));
} else if ("dataImportDetails".equals(fieldName)) {
List dataImportDetails
= reader.readArray(reader1 -> DataImportDetails.fromJson(reader1));
@@ -520,13 +355,13 @@ public static DataBoxDiskJobDetails fromJson(JsonReader jsonReader) throws IOExc
.withReverseShippingDetails(ReverseShippingDetails.fromJson(reader));
} else if ("copyLogDetails".equals(fieldName)) {
List copyLogDetails = reader.readArray(reader1 -> CopyLogDetails.fromJson(reader1));
- deserializedDataBoxDiskJobDetails.copyLogDetails = copyLogDetails;
+ deserializedDataBoxDiskJobDetails.withCopyLogDetails(copyLogDetails);
} else if ("reverseShipmentLabelSasKey".equals(fieldName)) {
- deserializedDataBoxDiskJobDetails.reverseShipmentLabelSasKey = reader.getString();
+ deserializedDataBoxDiskJobDetails.withReverseShipmentLabelSasKey(reader.getString());
} else if ("chainOfCustodySasKey".equals(fieldName)) {
- deserializedDataBoxDiskJobDetails.chainOfCustodySasKey = reader.getString();
+ deserializedDataBoxDiskJobDetails.withChainOfCustodySasKey(reader.getString());
} else if ("deviceErasureDetails".equals(fieldName)) {
- deserializedDataBoxDiskJobDetails.deviceErasureDetails = DeviceErasureDetails.fromJson(reader);
+ deserializedDataBoxDiskJobDetails.withDeviceErasureDetails(DeviceErasureDetails.fromJson(reader));
} else if ("keyEncryptionKey".equals(fieldName)) {
deserializedDataBoxDiskJobDetails.withKeyEncryptionKey(KeyEncryptionKey.fromJson(reader));
} else if ("expectedDataSizeInTeraBytes".equals(fieldName)) {
@@ -535,14 +370,14 @@ public static DataBoxDiskJobDetails fromJson(JsonReader jsonReader) throws IOExc
} else if ("actions".equals(fieldName)) {
List actions
= reader.readArray(reader1 -> CustomerResolutionCode.fromString(reader1.getString()));
- deserializedDataBoxDiskJobDetails.actions = actions;
+ deserializedDataBoxDiskJobDetails.withActions(actions);
} else if ("lastMitigationActionOnJob".equals(fieldName)) {
- deserializedDataBoxDiskJobDetails.lastMitigationActionOnJob
- = LastMitigationActionOnJob.fromJson(reader);
+ deserializedDataBoxDiskJobDetails
+ .withLastMitigationActionOnJob(LastMitigationActionOnJob.fromJson(reader));
} else if ("datacenterAddress".equals(fieldName)) {
- deserializedDataBoxDiskJobDetails.datacenterAddress = DatacenterAddressResponse.fromJson(reader);
+ deserializedDataBoxDiskJobDetails.withDatacenterAddress(DatacenterAddressResponse.fromJson(reader));
} else if ("dataCenterCode".equals(fieldName)) {
- deserializedDataBoxDiskJobDetails.dataCenterCode = DataCenterCode.fromString(reader.getString());
+ deserializedDataBoxDiskJobDetails.withDataCenterCode(DataCenterCode.fromString(reader.getString()));
} else if ("jobDetailsType".equals(fieldName)) {
deserializedDataBoxDiskJobDetails.jobDetailsType
= ClassDiscriminator.fromString(reader.getString());
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxDiskJobSecrets.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxDiskJobSecrets.java
index efbfc81034b1a..c071593bf65ae 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxDiskJobSecrets.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxDiskJobSecrets.java
@@ -36,16 +36,6 @@ public final class DataBoxDiskJobSecrets extends JobSecrets {
*/
private Boolean isPasskeyUserDefined;
- /*
- * Error while fetching the secrets.
- */
- private CloudError error;
-
- /*
- * Dc Access Security Code for Customer Managed Shipping
- */
- private DcAccessSecurityCode dcAccessSecurityCode;
-
/**
* Creates an instance of DataBoxDiskJobSecrets class.
*/
@@ -89,26 +79,6 @@ public Boolean isPasskeyUserDefined() {
return this.isPasskeyUserDefined;
}
- /**
- * Get the error property: Error while fetching the secrets.
- *
- * @return the error value.
- */
- @Override
- public CloudError error() {
- return this.error;
- }
-
- /**
- * Get the dcAccessSecurityCode property: Dc Access Security Code for Customer Managed Shipping.
- *
- * @return the dcAccessSecurityCode value.
- */
- @Override
- public DcAccessSecurityCode dcAccessSecurityCode() {
- return this.dcAccessSecurityCode;
- }
-
/**
* Validates the instance.
*
@@ -154,9 +124,9 @@ public static DataBoxDiskJobSecrets fromJson(JsonReader jsonReader) throws IOExc
reader.nextToken();
if ("dcAccessSecurityCode".equals(fieldName)) {
- deserializedDataBoxDiskJobSecrets.dcAccessSecurityCode = DcAccessSecurityCode.fromJson(reader);
+ deserializedDataBoxDiskJobSecrets.withDcAccessSecurityCode(DcAccessSecurityCode.fromJson(reader));
} else if ("error".equals(fieldName)) {
- deserializedDataBoxDiskJobSecrets.error = CloudError.fromJson(reader);
+ deserializedDataBoxDiskJobSecrets.withError(CloudError.fromJson(reader));
} else if ("jobSecretsType".equals(fieldName)) {
deserializedDataBoxDiskJobSecrets.jobSecretsType
= ClassDiscriminator.fromString(reader.getString());
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxHeavyJobDetails.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxHeavyJobDetails.java
index 153633a171ec8..12acd7f318cef 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxHeavyJobDetails.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxHeavyJobDetails.java
@@ -36,61 +36,6 @@ public final class DataBoxHeavyJobDetails extends JobDetails {
*/
private String devicePassword;
- /*
- * DataCenter code.
- */
- private DataCenterCode dataCenterCode;
-
- /*
- * Datacenter address to ship to, for the given sku and storage location.
- */
- private DatacenterAddressResponse datacenterAddress;
-
- /*
- * Last mitigation action performed on the job.
- */
- private LastMitigationActionOnJob lastMitigationActionOnJob;
-
- /*
- * Available actions on the job.
- */
- private List actions;
-
- /*
- * Holds device data erasure details
- */
- private DeviceErasureDetails deviceErasureDetails;
-
- /*
- * Shared access key to download the chain of custody logs
- */
- private String chainOfCustodySasKey;
-
- /*
- * Shared access key to download the return shipment label
- */
- private String reverseShipmentLabelSasKey;
-
- /*
- * List of copy log details.
- */
- private List copyLogDetails;
-
- /*
- * Return package shipping details.
- */
- private PackageShippingDetails returnPackage;
-
- /*
- * Delivery package shipping details.
- */
- private PackageShippingDetails deliveryPackage;
-
- /*
- * List of stages that run in the job.
- */
- private List jobStages;
-
/**
* Creates an instance of DataBoxHeavyJobDetails class.
*/
@@ -146,116 +91,6 @@ public DataBoxHeavyJobDetails withDevicePassword(String devicePassword) {
return this;
}
- /**
- * Get the dataCenterCode property: DataCenter code.
- *
- * @return the dataCenterCode value.
- */
- @Override
- public DataCenterCode dataCenterCode() {
- return this.dataCenterCode;
- }
-
- /**
- * Get the datacenterAddress property: Datacenter address to ship to, for the given sku and storage location.
- *
- * @return the datacenterAddress value.
- */
- @Override
- public DatacenterAddressResponse datacenterAddress() {
- return this.datacenterAddress;
- }
-
- /**
- * Get the lastMitigationActionOnJob property: Last mitigation action performed on the job.
- *
- * @return the lastMitigationActionOnJob value.
- */
- @Override
- public LastMitigationActionOnJob lastMitigationActionOnJob() {
- return this.lastMitigationActionOnJob;
- }
-
- /**
- * Get the actions property: Available actions on the job.
- *
- * @return the actions value.
- */
- @Override
- public List actions() {
- return this.actions;
- }
-
- /**
- * Get the deviceErasureDetails property: Holds device data erasure details.
- *
- * @return the deviceErasureDetails value.
- */
- @Override
- public DeviceErasureDetails deviceErasureDetails() {
- return this.deviceErasureDetails;
- }
-
- /**
- * Get the chainOfCustodySasKey property: Shared access key to download the chain of custody logs.
- *
- * @return the chainOfCustodySasKey value.
- */
- @Override
- public String chainOfCustodySasKey() {
- return this.chainOfCustodySasKey;
- }
-
- /**
- * Get the reverseShipmentLabelSasKey property: Shared access key to download the return shipment label.
- *
- * @return the reverseShipmentLabelSasKey value.
- */
- @Override
- public String reverseShipmentLabelSasKey() {
- return this.reverseShipmentLabelSasKey;
- }
-
- /**
- * Get the copyLogDetails property: List of copy log details.
- *
- * @return the copyLogDetails value.
- */
- @Override
- public List copyLogDetails() {
- return this.copyLogDetails;
- }
-
- /**
- * Get the returnPackage property: Return package shipping details.
- *
- * @return the returnPackage value.
- */
- @Override
- public PackageShippingDetails returnPackage() {
- return this.returnPackage;
- }
-
- /**
- * Get the deliveryPackage property: Delivery package shipping details.
- *
- * @return the deliveryPackage value.
- */
- @Override
- public PackageShippingDetails deliveryPackage() {
- return this.deliveryPackage;
- }
-
- /**
- * Get the jobStages property: List of stages that run in the job.
- *
- * @return the jobStages value.
- */
- @Override
- public List jobStages() {
- return this.jobStages;
- }
-
/**
* {@inheritDoc}
*/
@@ -430,13 +265,13 @@ public static DataBoxHeavyJobDetails fromJson(JsonReader jsonReader) throws IOEx
deserializedDataBoxHeavyJobDetails.withContactDetails(ContactDetails.fromJson(reader));
} else if ("jobStages".equals(fieldName)) {
List jobStages = reader.readArray(reader1 -> JobStages.fromJson(reader1));
- deserializedDataBoxHeavyJobDetails.jobStages = jobStages;
+ deserializedDataBoxHeavyJobDetails.withJobStages(jobStages);
} else if ("shippingAddress".equals(fieldName)) {
deserializedDataBoxHeavyJobDetails.withShippingAddress(ShippingAddress.fromJson(reader));
} else if ("deliveryPackage".equals(fieldName)) {
- deserializedDataBoxHeavyJobDetails.deliveryPackage = PackageShippingDetails.fromJson(reader);
+ deserializedDataBoxHeavyJobDetails.withDeliveryPackage(PackageShippingDetails.fromJson(reader));
} else if ("returnPackage".equals(fieldName)) {
- deserializedDataBoxHeavyJobDetails.returnPackage = PackageShippingDetails.fromJson(reader);
+ deserializedDataBoxHeavyJobDetails.withReturnPackage(PackageShippingDetails.fromJson(reader));
} else if ("dataImportDetails".equals(fieldName)) {
List dataImportDetails
= reader.readArray(reader1 -> DataImportDetails.fromJson(reader1));
@@ -452,13 +287,13 @@ public static DataBoxHeavyJobDetails fromJson(JsonReader jsonReader) throws IOEx
.withReverseShippingDetails(ReverseShippingDetails.fromJson(reader));
} else if ("copyLogDetails".equals(fieldName)) {
List copyLogDetails = reader.readArray(reader1 -> CopyLogDetails.fromJson(reader1));
- deserializedDataBoxHeavyJobDetails.copyLogDetails = copyLogDetails;
+ deserializedDataBoxHeavyJobDetails.withCopyLogDetails(copyLogDetails);
} else if ("reverseShipmentLabelSasKey".equals(fieldName)) {
- deserializedDataBoxHeavyJobDetails.reverseShipmentLabelSasKey = reader.getString();
+ deserializedDataBoxHeavyJobDetails.withReverseShipmentLabelSasKey(reader.getString());
} else if ("chainOfCustodySasKey".equals(fieldName)) {
- deserializedDataBoxHeavyJobDetails.chainOfCustodySasKey = reader.getString();
+ deserializedDataBoxHeavyJobDetails.withChainOfCustodySasKey(reader.getString());
} else if ("deviceErasureDetails".equals(fieldName)) {
- deserializedDataBoxHeavyJobDetails.deviceErasureDetails = DeviceErasureDetails.fromJson(reader);
+ deserializedDataBoxHeavyJobDetails.withDeviceErasureDetails(DeviceErasureDetails.fromJson(reader));
} else if ("keyEncryptionKey".equals(fieldName)) {
deserializedDataBoxHeavyJobDetails.withKeyEncryptionKey(KeyEncryptionKey.fromJson(reader));
} else if ("expectedDataSizeInTeraBytes".equals(fieldName)) {
@@ -467,14 +302,16 @@ public static DataBoxHeavyJobDetails fromJson(JsonReader jsonReader) throws IOEx
} else if ("actions".equals(fieldName)) {
List actions
= reader.readArray(reader1 -> CustomerResolutionCode.fromString(reader1.getString()));
- deserializedDataBoxHeavyJobDetails.actions = actions;
+ deserializedDataBoxHeavyJobDetails.withActions(actions);
} else if ("lastMitigationActionOnJob".equals(fieldName)) {
- deserializedDataBoxHeavyJobDetails.lastMitigationActionOnJob
- = LastMitigationActionOnJob.fromJson(reader);
+ deserializedDataBoxHeavyJobDetails
+ .withLastMitigationActionOnJob(LastMitigationActionOnJob.fromJson(reader));
} else if ("datacenterAddress".equals(fieldName)) {
- deserializedDataBoxHeavyJobDetails.datacenterAddress = DatacenterAddressResponse.fromJson(reader);
+ deserializedDataBoxHeavyJobDetails
+ .withDatacenterAddress(DatacenterAddressResponse.fromJson(reader));
} else if ("dataCenterCode".equals(fieldName)) {
- deserializedDataBoxHeavyJobDetails.dataCenterCode = DataCenterCode.fromString(reader.getString());
+ deserializedDataBoxHeavyJobDetails
+ .withDataCenterCode(DataCenterCode.fromString(reader.getString()));
} else if ("jobDetailsType".equals(fieldName)) {
deserializedDataBoxHeavyJobDetails.jobDetailsType
= ClassDiscriminator.fromString(reader.getString());
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxHeavyJobSecrets.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxHeavyJobSecrets.java
index cf10a94d8e268..f8d186aa7486f 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxHeavyJobSecrets.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxHeavyJobSecrets.java
@@ -26,16 +26,6 @@ public final class DataBoxHeavyJobSecrets extends JobSecrets {
*/
private List cabinetPodSecrets;
- /*
- * Error while fetching the secrets.
- */
- private CloudError error;
-
- /*
- * Dc Access Security Code for Customer Managed Shipping
- */
- private DcAccessSecurityCode dcAccessSecurityCode;
-
/**
* Creates an instance of DataBoxHeavyJobSecrets class.
*/
@@ -61,26 +51,6 @@ public List cabinetPodSecrets() {
return this.cabinetPodSecrets;
}
- /**
- * Get the error property: Error while fetching the secrets.
- *
- * @return the error value.
- */
- @Override
- public CloudError error() {
- return this.error;
- }
-
- /**
- * Get the dcAccessSecurityCode property: Dc Access Security Code for Customer Managed Shipping.
- *
- * @return the dcAccessSecurityCode value.
- */
- @Override
- public DcAccessSecurityCode dcAccessSecurityCode() {
- return this.dcAccessSecurityCode;
- }
-
/**
* Validates the instance.
*
@@ -126,9 +96,9 @@ public static DataBoxHeavyJobSecrets fromJson(JsonReader jsonReader) throws IOEx
reader.nextToken();
if ("dcAccessSecurityCode".equals(fieldName)) {
- deserializedDataBoxHeavyJobSecrets.dcAccessSecurityCode = DcAccessSecurityCode.fromJson(reader);
+ deserializedDataBoxHeavyJobSecrets.withDcAccessSecurityCode(DcAccessSecurityCode.fromJson(reader));
} else if ("error".equals(fieldName)) {
- deserializedDataBoxHeavyJobSecrets.error = CloudError.fromJson(reader);
+ deserializedDataBoxHeavyJobSecrets.withError(CloudError.fromJson(reader));
} else if ("jobSecretsType".equals(fieldName)) {
deserializedDataBoxHeavyJobSecrets.jobSecretsType
= ClassDiscriminator.fromString(reader.getString());
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxJobDetails.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxJobDetails.java
index a62abb70f636e..16bf4d30d0c31 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxJobDetails.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataBoxJobDetails.java
@@ -36,61 +36,6 @@ public final class DataBoxJobDetails extends JobDetails {
*/
private String devicePassword;
- /*
- * DataCenter code.
- */
- private DataCenterCode dataCenterCode;
-
- /*
- * Datacenter address to ship to, for the given sku and storage location.
- */
- private DatacenterAddressResponse datacenterAddress;
-
- /*
- * Last mitigation action performed on the job.
- */
- private LastMitigationActionOnJob lastMitigationActionOnJob;
-
- /*
- * Available actions on the job.
- */
- private List actions;
-
- /*
- * Holds device data erasure details
- */
- private DeviceErasureDetails deviceErasureDetails;
-
- /*
- * Shared access key to download the chain of custody logs
- */
- private String chainOfCustodySasKey;
-
- /*
- * Shared access key to download the return shipment label
- */
- private String reverseShipmentLabelSasKey;
-
- /*
- * List of copy log details.
- */
- private List copyLogDetails;
-
- /*
- * Return package shipping details.
- */
- private PackageShippingDetails returnPackage;
-
- /*
- * Delivery package shipping details.
- */
- private PackageShippingDetails deliveryPackage;
-
- /*
- * List of stages that run in the job.
- */
- private List jobStages;
-
/**
* Creates an instance of DataBoxJobDetails class.
*/
@@ -146,116 +91,6 @@ public DataBoxJobDetails withDevicePassword(String devicePassword) {
return this;
}
- /**
- * Get the dataCenterCode property: DataCenter code.
- *
- * @return the dataCenterCode value.
- */
- @Override
- public DataCenterCode dataCenterCode() {
- return this.dataCenterCode;
- }
-
- /**
- * Get the datacenterAddress property: Datacenter address to ship to, for the given sku and storage location.
- *
- * @return the datacenterAddress value.
- */
- @Override
- public DatacenterAddressResponse datacenterAddress() {
- return this.datacenterAddress;
- }
-
- /**
- * Get the lastMitigationActionOnJob property: Last mitigation action performed on the job.
- *
- * @return the lastMitigationActionOnJob value.
- */
- @Override
- public LastMitigationActionOnJob lastMitigationActionOnJob() {
- return this.lastMitigationActionOnJob;
- }
-
- /**
- * Get the actions property: Available actions on the job.
- *
- * @return the actions value.
- */
- @Override
- public List actions() {
- return this.actions;
- }
-
- /**
- * Get the deviceErasureDetails property: Holds device data erasure details.
- *
- * @return the deviceErasureDetails value.
- */
- @Override
- public DeviceErasureDetails deviceErasureDetails() {
- return this.deviceErasureDetails;
- }
-
- /**
- * Get the chainOfCustodySasKey property: Shared access key to download the chain of custody logs.
- *
- * @return the chainOfCustodySasKey value.
- */
- @Override
- public String chainOfCustodySasKey() {
- return this.chainOfCustodySasKey;
- }
-
- /**
- * Get the reverseShipmentLabelSasKey property: Shared access key to download the return shipment label.
- *
- * @return the reverseShipmentLabelSasKey value.
- */
- @Override
- public String reverseShipmentLabelSasKey() {
- return this.reverseShipmentLabelSasKey;
- }
-
- /**
- * Get the copyLogDetails property: List of copy log details.
- *
- * @return the copyLogDetails value.
- */
- @Override
- public List copyLogDetails() {
- return this.copyLogDetails;
- }
-
- /**
- * Get the returnPackage property: Return package shipping details.
- *
- * @return the returnPackage value.
- */
- @Override
- public PackageShippingDetails returnPackage() {
- return this.returnPackage;
- }
-
- /**
- * Get the deliveryPackage property: Delivery package shipping details.
- *
- * @return the deliveryPackage value.
- */
- @Override
- public PackageShippingDetails deliveryPackage() {
- return this.deliveryPackage;
- }
-
- /**
- * Get the jobStages property: List of stages that run in the job.
- *
- * @return the jobStages value.
- */
- @Override
- public List jobStages() {
- return this.jobStages;
- }
-
/**
* {@inheritDoc}
*/
@@ -430,13 +265,13 @@ public static DataBoxJobDetails fromJson(JsonReader jsonReader) throws IOExcepti
deserializedDataBoxJobDetails.withContactDetails(ContactDetails.fromJson(reader));
} else if ("jobStages".equals(fieldName)) {
List jobStages = reader.readArray(reader1 -> JobStages.fromJson(reader1));
- deserializedDataBoxJobDetails.jobStages = jobStages;
+ deserializedDataBoxJobDetails.withJobStages(jobStages);
} else if ("shippingAddress".equals(fieldName)) {
deserializedDataBoxJobDetails.withShippingAddress(ShippingAddress.fromJson(reader));
} else if ("deliveryPackage".equals(fieldName)) {
- deserializedDataBoxJobDetails.deliveryPackage = PackageShippingDetails.fromJson(reader);
+ deserializedDataBoxJobDetails.withDeliveryPackage(PackageShippingDetails.fromJson(reader));
} else if ("returnPackage".equals(fieldName)) {
- deserializedDataBoxJobDetails.returnPackage = PackageShippingDetails.fromJson(reader);
+ deserializedDataBoxJobDetails.withReturnPackage(PackageShippingDetails.fromJson(reader));
} else if ("dataImportDetails".equals(fieldName)) {
List dataImportDetails
= reader.readArray(reader1 -> DataImportDetails.fromJson(reader1));
@@ -451,13 +286,13 @@ public static DataBoxJobDetails fromJson(JsonReader jsonReader) throws IOExcepti
deserializedDataBoxJobDetails.withReverseShippingDetails(ReverseShippingDetails.fromJson(reader));
} else if ("copyLogDetails".equals(fieldName)) {
List copyLogDetails = reader.readArray(reader1 -> CopyLogDetails.fromJson(reader1));
- deserializedDataBoxJobDetails.copyLogDetails = copyLogDetails;
+ deserializedDataBoxJobDetails.withCopyLogDetails(copyLogDetails);
} else if ("reverseShipmentLabelSasKey".equals(fieldName)) {
- deserializedDataBoxJobDetails.reverseShipmentLabelSasKey = reader.getString();
+ deserializedDataBoxJobDetails.withReverseShipmentLabelSasKey(reader.getString());
} else if ("chainOfCustodySasKey".equals(fieldName)) {
- deserializedDataBoxJobDetails.chainOfCustodySasKey = reader.getString();
+ deserializedDataBoxJobDetails.withChainOfCustodySasKey(reader.getString());
} else if ("deviceErasureDetails".equals(fieldName)) {
- deserializedDataBoxJobDetails.deviceErasureDetails = DeviceErasureDetails.fromJson(reader);
+ deserializedDataBoxJobDetails.withDeviceErasureDetails(DeviceErasureDetails.fromJson(reader));
} else if ("keyEncryptionKey".equals(fieldName)) {
deserializedDataBoxJobDetails.withKeyEncryptionKey(KeyEncryptionKey.fromJson(reader));
} else if ("expectedDataSizeInTeraBytes".equals(fieldName)) {
@@ -466,14 +301,14 @@ public static DataBoxJobDetails fromJson(JsonReader jsonReader) throws IOExcepti
} else if ("actions".equals(fieldName)) {
List actions
= reader.readArray(reader1 -> CustomerResolutionCode.fromString(reader1.getString()));
- deserializedDataBoxJobDetails.actions = actions;
+ deserializedDataBoxJobDetails.withActions(actions);
} else if ("lastMitigationActionOnJob".equals(fieldName)) {
- deserializedDataBoxJobDetails.lastMitigationActionOnJob
- = LastMitigationActionOnJob.fromJson(reader);
+ deserializedDataBoxJobDetails
+ .withLastMitigationActionOnJob(LastMitigationActionOnJob.fromJson(reader));
} else if ("datacenterAddress".equals(fieldName)) {
- deserializedDataBoxJobDetails.datacenterAddress = DatacenterAddressResponse.fromJson(reader);
+ deserializedDataBoxJobDetails.withDatacenterAddress(DatacenterAddressResponse.fromJson(reader));
} else if ("dataCenterCode".equals(fieldName)) {
- deserializedDataBoxJobDetails.dataCenterCode = DataCenterCode.fromString(reader.getString());
+ deserializedDataBoxJobDetails.withDataCenterCode(DataCenterCode.fromString(reader.getString()));
} else if ("jobDetailsType".equals(fieldName)) {
deserializedDataBoxJobDetails.jobDetailsType = ClassDiscriminator.fromString(reader.getString());
} else if ("copyProgress".equals(fieldName)) {
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataTransferDetailsValidationResponseProperties.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataTransferDetailsValidationResponseProperties.java
index 238e1f82ece8d..34672a41888a2 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataTransferDetailsValidationResponseProperties.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataTransferDetailsValidationResponseProperties.java
@@ -25,11 +25,6 @@ public final class DataTransferDetailsValidationResponseProperties extends Valid
*/
private ValidationStatus status;
- /*
- * Error code and message of validation response.
- */
- private CloudError error;
-
/**
* Creates an instance of DataTransferDetailsValidationResponseProperties class.
*/
@@ -55,16 +50,6 @@ public ValidationStatus status() {
return this.status;
}
- /**
- * Get the error property: Error code and message of validation response.
- *
- * @return the error value.
- */
- @Override
- public CloudError error() {
- return this.error;
- }
-
/**
* Validates the instance.
*
@@ -105,7 +90,7 @@ public static DataTransferDetailsValidationResponseProperties fromJson(JsonReade
reader.nextToken();
if ("error".equals(fieldName)) {
- deserializedDataTransferDetailsValidationResponseProperties.error = CloudError.fromJson(reader);
+ deserializedDataTransferDetailsValidationResponseProperties.withError(CloudError.fromJson(reader));
} else if ("validationType".equals(fieldName)) {
deserializedDataTransferDetailsValidationResponseProperties.validationType
= ValidationInputDiscriminator.fromString(reader.getString());
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataboxJobSecrets.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataboxJobSecrets.java
index cca4c039025c9..b29d66826593f 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataboxJobSecrets.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DataboxJobSecrets.java
@@ -26,16 +26,6 @@ public final class DataboxJobSecrets extends JobSecrets {
*/
private List podSecrets;
- /*
- * Error while fetching the secrets.
- */
- private CloudError error;
-
- /*
- * Dc Access Security Code for Customer Managed Shipping
- */
- private DcAccessSecurityCode dcAccessSecurityCode;
-
/**
* Creates an instance of DataboxJobSecrets class.
*/
@@ -72,26 +62,6 @@ public DataboxJobSecrets withPodSecrets(List podSecrets) {
return this;
}
- /**
- * Get the error property: Error while fetching the secrets.
- *
- * @return the error value.
- */
- @Override
- public CloudError error() {
- return this.error;
- }
-
- /**
- * Get the dcAccessSecurityCode property: Dc Access Security Code for Customer Managed Shipping.
- *
- * @return the dcAccessSecurityCode value.
- */
- @Override
- public DcAccessSecurityCode dcAccessSecurityCode() {
- return this.dcAccessSecurityCode;
- }
-
/**
* Validates the instance.
*
@@ -138,9 +108,9 @@ public static DataboxJobSecrets fromJson(JsonReader jsonReader) throws IOExcepti
reader.nextToken();
if ("dcAccessSecurityCode".equals(fieldName)) {
- deserializedDataboxJobSecrets.dcAccessSecurityCode = DcAccessSecurityCode.fromJson(reader);
+ deserializedDataboxJobSecrets.withDcAccessSecurityCode(DcAccessSecurityCode.fromJson(reader));
} else if ("error".equals(fieldName)) {
- deserializedDataboxJobSecrets.error = CloudError.fromJson(reader);
+ deserializedDataboxJobSecrets.withError(CloudError.fromJson(reader));
} else if ("jobSecretsType".equals(fieldName)) {
deserializedDataboxJobSecrets.jobSecretsType = ClassDiscriminator.fromString(reader.getString());
} else if ("podSecrets".equals(fieldName)) {
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DatacenterAddressInstructionResponse.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DatacenterAddressInstructionResponse.java
index 737570f37c9c5..48eeb2e620467 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DatacenterAddressInstructionResponse.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DatacenterAddressInstructionResponse.java
@@ -26,16 +26,6 @@ public final class DatacenterAddressInstructionResponse extends DatacenterAddres
*/
private String communicationInstruction;
- /*
- * Azure Location where the Data Center serves primarily.
- */
- private String dataCenterAzureLocation;
-
- /*
- * List of supported carriers for return shipment.
- */
- private List supportedCarriersForReturnShipment;
-
/**
* Creates an instance of DatacenterAddressInstructionResponse class.
*/
@@ -61,26 +51,6 @@ public String communicationInstruction() {
return this.communicationInstruction;
}
- /**
- * Get the dataCenterAzureLocation property: Azure Location where the Data Center serves primarily.
- *
- * @return the dataCenterAzureLocation value.
- */
- @Override
- public String dataCenterAzureLocation() {
- return this.dataCenterAzureLocation;
- }
-
- /**
- * Get the supportedCarriersForReturnShipment property: List of supported carriers for return shipment.
- *
- * @return the supportedCarriersForReturnShipment value.
- */
- @Override
- public List supportedCarriersForReturnShipment() {
- return this.supportedCarriersForReturnShipment;
- }
-
/**
* Validates the instance.
*
@@ -119,10 +89,10 @@ public static DatacenterAddressInstructionResponse fromJson(JsonReader jsonReade
if ("supportedCarriersForReturnShipment".equals(fieldName)) {
List supportedCarriersForReturnShipment = reader.readArray(reader1 -> reader1.getString());
- deserializedDatacenterAddressInstructionResponse.supportedCarriersForReturnShipment
- = supportedCarriersForReturnShipment;
+ deserializedDatacenterAddressInstructionResponse
+ .withSupportedCarriersForReturnShipment(supportedCarriersForReturnShipment);
} else if ("dataCenterAzureLocation".equals(fieldName)) {
- deserializedDatacenterAddressInstructionResponse.dataCenterAzureLocation = reader.getString();
+ deserializedDatacenterAddressInstructionResponse.withDataCenterAzureLocation(reader.getString());
} else if ("datacenterAddressType".equals(fieldName)) {
deserializedDatacenterAddressInstructionResponse.datacenterAddressType
= DatacenterAddressType.fromString(reader.getString());
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DatacenterAddressLocationResponse.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DatacenterAddressLocationResponse.java
index e80e0c07b0f1a..2d198f8fa7a66 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DatacenterAddressLocationResponse.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DatacenterAddressLocationResponse.java
@@ -86,16 +86,6 @@ public final class DatacenterAddressLocationResponse extends DatacenterAddressRe
*/
private String additionalShippingInformation;
- /*
- * Azure Location where the Data Center serves primarily.
- */
- private String dataCenterAzureLocation;
-
- /*
- * List of supported carriers for return shipment.
- */
- private List supportedCarriersForReturnShipment;
-
/**
* Creates an instance of DatacenterAddressLocationResponse class.
*/
@@ -229,26 +219,6 @@ public String additionalShippingInformation() {
return this.additionalShippingInformation;
}
- /**
- * Get the dataCenterAzureLocation property: Azure Location where the Data Center serves primarily.
- *
- * @return the dataCenterAzureLocation value.
- */
- @Override
- public String dataCenterAzureLocation() {
- return this.dataCenterAzureLocation;
- }
-
- /**
- * Get the supportedCarriersForReturnShipment property: List of supported carriers for return shipment.
- *
- * @return the supportedCarriersForReturnShipment value.
- */
- @Override
- public List supportedCarriersForReturnShipment() {
- return this.supportedCarriersForReturnShipment;
- }
-
/**
* Validates the instance.
*
@@ -287,10 +257,10 @@ public static DatacenterAddressLocationResponse fromJson(JsonReader jsonReader)
if ("supportedCarriersForReturnShipment".equals(fieldName)) {
List supportedCarriersForReturnShipment = reader.readArray(reader1 -> reader1.getString());
- deserializedDatacenterAddressLocationResponse.supportedCarriersForReturnShipment
- = supportedCarriersForReturnShipment;
+ deserializedDatacenterAddressLocationResponse
+ .withSupportedCarriersForReturnShipment(supportedCarriersForReturnShipment);
} else if ("dataCenterAzureLocation".equals(fieldName)) {
- deserializedDatacenterAddressLocationResponse.dataCenterAzureLocation = reader.getString();
+ deserializedDatacenterAddressLocationResponse.withDataCenterAzureLocation(reader.getString());
} else if ("datacenterAddressType".equals(fieldName)) {
deserializedDatacenterAddressLocationResponse.datacenterAddressType
= DatacenterAddressType.fromString(reader.getString());
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DatacenterAddressResponse.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DatacenterAddressResponse.java
index d60c44d857f80..4786e1071bd7f 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DatacenterAddressResponse.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/DatacenterAddressResponse.java
@@ -20,7 +20,7 @@ public class DatacenterAddressResponse implements JsonSerializable {
/*
* Indicates the type of job details.
*/
- private ClassDiscriminator jobDetailsType = ClassDiscriminator.fromString("JobDetails");
+ private ClassDiscriminator jobDetailsType;
/*
* List of stages that run in the job.
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/JobSecrets.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/JobSecrets.java
index ff4442387eda9..283e6d7aa6972 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/JobSecrets.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/JobSecrets.java
@@ -19,7 +19,7 @@ public class JobSecrets implements JsonSerializable {
/*
* Used to indicate what type of job secrets object.
*/
- private ClassDiscriminator jobSecretsType = ClassDiscriminator.fromString("JobSecrets");
+ private ClassDiscriminator jobSecretsType;
/*
* Dc Access Security Code for Customer Managed Shipping
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/PreferencesValidationResponseProperties.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/PreferencesValidationResponseProperties.java
index e5ae7aaf5af0b..b9831140fcdc7 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/PreferencesValidationResponseProperties.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/PreferencesValidationResponseProperties.java
@@ -25,11 +25,6 @@ public final class PreferencesValidationResponseProperties extends ValidationInp
*/
private ValidationStatus status;
- /*
- * Error code and message of validation response.
- */
- private CloudError error;
-
/**
* Creates an instance of PreferencesValidationResponseProperties class.
*/
@@ -55,16 +50,6 @@ public ValidationStatus status() {
return this.status;
}
- /**
- * Get the error property: Error code and message of validation response.
- *
- * @return the error value.
- */
- @Override
- public CloudError error() {
- return this.error;
- }
-
/**
* Validates the instance.
*
@@ -105,7 +90,7 @@ public static PreferencesValidationResponseProperties fromJson(JsonReader jsonRe
reader.nextToken();
if ("error".equals(fieldName)) {
- deserializedPreferencesValidationResponseProperties.error = CloudError.fromJson(reader);
+ deserializedPreferencesValidationResponseProperties.withError(CloudError.fromJson(reader));
} else if ("validationType".equals(fieldName)) {
deserializedPreferencesValidationResponseProperties.validationType
= ValidationInputDiscriminator.fromString(reader.getString());
diff --git a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/ScheduleAvailabilityRequest.java b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/ScheduleAvailabilityRequest.java
index ca9a9163ff18c..4aba3b264370c 100644
--- a/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/ScheduleAvailabilityRequest.java
+++ b/sdk/databox/azure-resourcemanager-databox/src/main/java/com/azure/resourcemanager/databox/models/ScheduleAvailabilityRequest.java
@@ -20,7 +20,7 @@ public class ScheduleAvailabilityRequest implements JsonSerializable