Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
114 changes: 110 additions & 4 deletions sdk/databox/azure-resourcemanager-databox/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion sdk/databox/azure-resourcemanager-databox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-databox</artifactId>
<version>1.0.0-beta.4</version>
<version>1.0.0</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
3 changes: 1 addition & 2 deletions sdk/databox/azure-resourcemanager-databox/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-databox</artifactId>
<version>1.0.0-beta.5</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-databox;current} -->
<version>1.0.0</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-databox;current} -->
<packaging>jar</packaging>

<name>Microsoft Azure SDK for DataBox Management</name>
Expand Down Expand Up @@ -45,7 +45,6 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
<spotless.skip>false</spotless.skip>
</properties>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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"))
Expand Down Expand Up @@ -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()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ public final class AddressValidationProperties extends ValidationInputResponse {
*/
private List<ShippingAddress> alternateAddresses;

/*
* Error code and message of validation response.
*/
private CloudError error;

/**
* Creates an instance of AddressValidationProperties class.
*/
Expand Down Expand Up @@ -70,16 +65,6 @@ public List<ShippingAddress> 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.
*
Expand Down Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class CopyLogDetails implements JsonSerializable<CopyLogDetails> {
/*
* Indicates the type of job details.
*/
private ClassDiscriminator copyLogDetailsType = ClassDiscriminator.fromString("CopyLogDetails");
private ClassDiscriminator copyLogDetailsType;

/**
* Creates an instance of CopyLogDetails class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -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.
*
Expand Down Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class DataAccountDetails implements JsonSerializable<DataAccountDetails>
/*
* 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
Expand Down
Loading
Loading