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 @@ -364,7 +364,7 @@ com.azure.resourcemanager:azure-resourcemanager-timeseriesinsights;1.0.0;1.1.0-b
com.azure.resourcemanager:azure-resourcemanager-streamanalytics;1.0.0-beta.4;1.0.0-beta.5
com.azure.resourcemanager:azure-resourcemanager-operationsmanagement;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-batch;2.0.0;2.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-datalakeanalytics;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-datalakeanalytics;1.0.0-beta.3;1.0.0
com.azure.resourcemanager:azure-resourcemanager-datalakestore;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-iotcentral;1.0.0;1.1.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-labservices;1.0.0;1.1.0-beta.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Release History

## 1.0.0-beta.4 (Unreleased)
## 1.0.0 (2025-01-03)

### Features Added
- Azure Resource Manager DataLakeAnalytics client library for Java. This package contains Microsoft Azure SDK for DataLakeAnalytics Management SDK. Creates an Azure Data Lake Analytics account management client. Package tag package-2016-11. 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.CheckNameAvailabilityParameters` was modified

### Other Changes
* `withType(java.lang.String)` was removed

## 1.0.0-beta.3 (2024-10-17)

Expand Down
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-datalakeanalytics</artifactId>
<version>1.0.0-beta.3</version>
<version>1.0.0</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

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

<name>Microsoft Azure SDK for DataLakeAnalytics Management</name>
Expand Down Expand Up @@ -45,7 +45,7 @@
<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>
<dependency>
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 @@ -229,7 +229,7 @@ public DataLakeAnalyticsManager authenticate(TokenCredential credential, AzurePr
.append("-")
.append("com.azure.resourcemanager.datalakeanalytics")
.append("/")
.append("1.0.0-beta.3");
.append("1.0.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
Expand Down Expand Up @@ -262,7 +262,7 @@ public DataLakeAnalyticsManager authenticate(TokenCredential credential, AzurePr
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 @@ -26,7 +26,7 @@ public final class CheckNameAvailabilityParameters implements JsonSerializable<C
* The resource type. Note: This should not be set by the user, as the constant value is
* Microsoft.DataLakeAnalytics/accounts
*/
private String type = "Microsoft.DataLakeAnalytics/accounts";
private final String type = "Microsoft.DataLakeAnalytics/accounts";

/**
* Creates an instance of CheckNameAvailabilityParameters class.
Expand Down Expand Up @@ -64,18 +64,6 @@ public String type() {
return this.type;
}

/**
* Set the type property: The resource type. Note: This should not be set by the user, as the constant value is
* Microsoft.DataLakeAnalytics/accounts.
*
* @param type the type value to set.
* @return the CheckNameAvailabilityParameters object itself.
*/
public CheckNameAvailabilityParameters withType(String type) {
this.type = type;
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public final class AccountsListByResourceGroupMockTests {
@Test
public void testListByResourceGroup() throws Exception {
String responseStr
= "{\"value\":[{\"properties\":{\"accountId\":\"11faa0f8-db2a-44a8-8b97-494a06a4e068\",\"provisioningState\":\"Canceled\",\"state\":\"Suspended\",\"creationTime\":\"2021-11-06T18:49:40Z\",\"lastModifiedTime\":\"2021-10-14T05:29:13Z\",\"endpoint\":\"znud\"},\"location\":\"od\",\"tags\":{\"rzdzucerscdnt\":\"bncblylpstdbhhx\"},\"id\":\"evfiwjmygt\",\"name\":\"sslswtmweriof\",\"type\":\"pyqs\"}]}";
= "{\"value\":[{\"properties\":{\"accountId\":\"cff1813b-b47c-4b29-87b1-30a183d6faf5\",\"provisioningState\":\"Canceled\",\"state\":\"Suspended\",\"creationTime\":\"2021-11-06T18:49:40Z\",\"lastModifiedTime\":\"2021-10-14T05:29:13Z\",\"endpoint\":\"znud\"},\"location\":\"od\",\"tags\":{\"rzdzucerscdnt\":\"bncblylpstdbhhx\"},\"id\":\"evfiwjmygt\",\"name\":\"sslswtmweriof\",\"type\":\"pyqs\"}]}";

HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public final class AccountsListMockTests {
@Test
public void testList() throws Exception {
String responseStr
= "{\"value\":[{\"properties\":{\"accountId\":\"7852fa69-37a7-49c3-9e85-56c42d4ae454\",\"provisioningState\":\"Failed\",\"state\":\"Suspended\",\"creationTime\":\"2021-01-23T23:11:07Z\",\"lastModifiedTime\":\"2021-07-15T05:15:39Z\",\"endpoint\":\"nfqqnvwp\"},\"location\":\"qtaruoujmkcjhwq\",\"tags\":{\"bnw\":\"r\",\"enq\":\"ewgdrjervn\",\"ndoygmifthnzdnd\":\"eh\",\"nayqi\":\"l\"},\"id\":\"ynduha\",\"name\":\"hqlkthumaqo\",\"type\":\"bgycduiertgccym\"}]}";
= "{\"value\":[{\"properties\":{\"accountId\":\"c6405ea3-44cb-4ab1-973c-418b2429d3ef\",\"provisioningState\":\"Failed\",\"state\":\"Suspended\",\"creationTime\":\"2021-01-23T23:11:07Z\",\"lastModifiedTime\":\"2021-07-15T05:15:39Z\",\"endpoint\":\"nfqqnvwp\"},\"location\":\"qtaruoujmkcjhwq\",\"tags\":{\"bnw\":\"r\",\"enq\":\"ewgdrjervn\",\"ndoygmifthnzdnd\":\"eh\",\"nayqi\":\"l\"},\"id\":\"ynduha\",\"name\":\"hqlkthumaqo\",\"type\":\"bgycduiertgccym\"}]}";

HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public final class CapabilityInformationInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
CapabilityInformationInner model = BinaryData.fromString(
"{\"subscriptionId\":\"cbc9380a-5876-46af-ac36-3c515a004067\",\"state\":\"Unregistered\",\"maxAccountCount\":1577221415,\"accountCount\":1139203375,\"migrationState\":false}")
"{\"subscriptionId\":\"d1a4d262-28b8-42b6-b525-3050c57cf5c3\",\"state\":\"Unregistered\",\"maxAccountCount\":1577221415,\"accountCount\":1139203375,\"migrationState\":false}")
.toObject(CapabilityInformationInner.class);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public final class ComputePoliciesCreateOrUpdateWithResponseMockTests {
@Test
public void testCreateOrUpdateWithResponse() throws Exception {
String responseStr
= "{\"properties\":{\"objectId\":\"a8c1ee1e-7e02-446a-a147-271ad13fb85b\",\"objectType\":\"User\",\"maxDegreeOfParallelismPerJob\":1236978734,\"minPriorityPerJob\":2111682042},\"name\":\"f\",\"type\":\"eyvpnqicvinvkj\",\"id\":\"dxrbuukzcle\"}";
= "{\"properties\":{\"objectId\":\"cd7cdd38-7565-443e-9c33-4f9f976bb3b2\",\"objectType\":\"User\",\"maxDegreeOfParallelismPerJob\":1236978734,\"minPriorityPerJob\":2111682042},\"name\":\"f\",\"type\":\"eyvpnqicvinvkj\",\"id\":\"dxrbuukzcle\"}";

HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
Expand All @@ -35,7 +35,7 @@ public void testCreateOrUpdateWithResponse() throws Exception {
ComputePolicy response = manager.computePolicies()
.define("sjervti")
.withExistingAccount("ggkfpagaowpul", "qblylsyxkqj")
.withObjectId(UUID.fromString("97f93afd-2da0-4573-a531-02eeca5cd4fc"))
.withObjectId(UUID.fromString("1ecb9b59-4670-4d6f-a33e-da2c79814590"))
.withObjectType(AadObjectType.GROUP)
.withMaxDegreeOfParallelismPerJob(1353667842)
.withMinPriorityPerJob(424844999)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public final class ComputePoliciesGetWithResponseMockTests {
@Test
public void testGetWithResponse() throws Exception {
String responseStr
= "{\"properties\":{\"objectId\":\"fd2b2093-672a-47f4-8500-8aba8a0ec8c6\",\"objectType\":\"User\",\"maxDegreeOfParallelismPerJob\":2099315083,\"minPriorityPerJob\":1402038644},\"name\":\"vydypatdoo\",\"type\":\"jkniodko\",\"id\":\"bw\"}";
= "{\"properties\":{\"objectId\":\"b72ef991-cc4a-492e-9444-6e9f0cb7f1b9\",\"objectType\":\"User\",\"maxDegreeOfParallelismPerJob\":2099315083,\"minPriorityPerJob\":1402038644},\"name\":\"vydypatdoo\",\"type\":\"jkniodko\",\"id\":\"bw\"}";

HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public final class ComputePoliciesListByAccountMockTests {
@Test
public void testListByAccount() throws Exception {
String responseStr
= "{\"value\":[{\"properties\":{\"objectId\":\"e6f320c8-3df9-4e99-b637-0b0765982682\",\"objectType\":\"Group\",\"maxDegreeOfParallelismPerJob\":470627882,\"minPriorityPerJob\":1769429451},\"name\":\"thzvaytdwkqbrqu\",\"type\":\"axhexiilivp\",\"id\":\"iirqtd\"}]}";
= "{\"value\":[{\"properties\":{\"objectId\":\"6b8e4639-12fc-46d8-9649-2772a919f5b4\",\"objectType\":\"Group\",\"maxDegreeOfParallelismPerJob\":470627882,\"minPriorityPerJob\":1769429451},\"name\":\"thzvaytdwkqbrqu\",\"type\":\"axhexiilivp\",\"id\":\"iirqtd\"}]}";

HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public final class ComputePolicyInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ComputePolicyInner model = BinaryData.fromString(
"{\"properties\":{\"objectId\":\"f1d7b3d4-3f1b-49db-ad4a-0e340d8f7309\",\"objectType\":\"Group\",\"maxDegreeOfParallelismPerJob\":792570944,\"minPriorityPerJob\":1370032032},\"name\":\"h\",\"type\":\"fbowskanyk\",\"id\":\"lcuiywgqywgndr\"}")
"{\"properties\":{\"objectId\":\"231fe99d-e99c-4567-9d96-82468cd73094\",\"objectType\":\"Group\",\"maxDegreeOfParallelismPerJob\":792570944,\"minPriorityPerJob\":1370032032},\"name\":\"h\",\"type\":\"fbowskanyk\",\"id\":\"lcuiywgqywgndr\"}")
.toObject(ComputePolicyInner.class);
Assertions.assertEquals("lcuiywgqywgndr", model.id());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public final class ComputePolicyListResultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ComputePolicyListResult model = BinaryData.fromString(
"{\"value\":[{\"properties\":{\"objectId\":\"32027d36-6b84-4016-aa62-e8f475872d0b\",\"objectType\":\"Group\",\"maxDegreeOfParallelismPerJob\":1103023268,\"minPriorityPerJob\":1901169400},\"name\":\"nljky\",\"type\":\"j\",\"id\":\"ujqgidok\"},{\"properties\":{\"objectId\":\"fa2ea5db-0f7c-4668-956a-50b2bb191ad9\",\"objectType\":\"Group\",\"maxDegreeOfParallelismPerJob\":1125977089,\"minPriorityPerJob\":649555961},\"name\":\"ltbgsncghkj\",\"type\":\"zz\",\"id\":\"ijhtxf\"},{\"properties\":{\"objectId\":\"f0e77379-4ae0-46da-99cc-99f8c4e8fe3b\",\"objectType\":\"ServicePrincipal\",\"maxDegreeOfParallelismPerJob\":1787736845,\"minPriorityPerJob\":215474399},\"name\":\"hmpvecx\",\"type\":\"debfqkkrbmpukgri\",\"id\":\"lzlfbxzpuz\"},{\"properties\":{\"objectId\":\"571a03e5-1134-4668-821b-ef5620b44b3d\",\"objectType\":\"ServicePrincipal\",\"maxDegreeOfParallelismPerJob\":315992042,\"minPriorityPerJob\":2071345899},\"name\":\"mgkbrpyydhibn\",\"type\":\"qkpikadrgvtqagnb\",\"id\":\"nhijggmebfsi\"}],\"nextLink\":\"butr\"}")
"{\"value\":[{\"properties\":{\"objectId\":\"292c2cb8-f6f7-4b43-99c4-c328ff4d25a3\",\"objectType\":\"Group\",\"maxDegreeOfParallelismPerJob\":1103023268,\"minPriorityPerJob\":1901169400},\"name\":\"nljky\",\"type\":\"j\",\"id\":\"ujqgidok\"},{\"properties\":{\"objectId\":\"64833640-0084-4119-b537-fc9e7cec7abc\",\"objectType\":\"Group\",\"maxDegreeOfParallelismPerJob\":1125977089,\"minPriorityPerJob\":649555961},\"name\":\"ltbgsncghkj\",\"type\":\"zz\",\"id\":\"ijhtxf\"},{\"properties\":{\"objectId\":\"b11eec8b-9008-4169-b44e-a01c553d5228\",\"objectType\":\"ServicePrincipal\",\"maxDegreeOfParallelismPerJob\":1787736845,\"minPriorityPerJob\":215474399},\"name\":\"hmpvecx\",\"type\":\"debfqkkrbmpukgri\",\"id\":\"lzlfbxzpuz\"},{\"properties\":{\"objectId\":\"06d7085a-9b54-4b39-a426-26c267949844\",\"objectType\":\"ServicePrincipal\",\"maxDegreeOfParallelismPerJob\":315992042,\"minPriorityPerJob\":2071345899},\"name\":\"mgkbrpyydhibn\",\"type\":\"qkpikadrgvtqagnb\",\"id\":\"nhijggmebfsi\"}],\"nextLink\":\"butr\"}")
.toObject(ComputePolicyListResult.class);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public final class ComputePolicyPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ComputePolicyProperties model = BinaryData.fromString(
"{\"objectId\":\"168fb718-d72e-447d-bfbb-38614a1c918a\",\"objectType\":\"User\",\"maxDegreeOfParallelismPerJob\":19075135,\"minPriorityPerJob\":523315995}")
"{\"objectId\":\"8d9e154b-0e32-4c8d-a8f9-c4ccf6a04262\",\"objectType\":\"User\",\"maxDegreeOfParallelismPerJob\":19075135,\"minPriorityPerJob\":523315995}")
.toObject(ComputePolicyProperties.class);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ public final class CreateComputePolicyWithAccountParametersTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
CreateComputePolicyWithAccountParameters model = BinaryData.fromString(
"{\"name\":\"usivye\",\"properties\":{\"objectId\":\"2bc146ee-a90e-4197-8b64-eb06e89cf3be\",\"objectType\":\"ServicePrincipal\",\"maxDegreeOfParallelismPerJob\":1323562973,\"minPriorityPerJob\":1522291140}}")
"{\"name\":\"usivye\",\"properties\":{\"objectId\":\"5db3c7a4-c6f9-4cd8-8fdb-94a2ce82af13\",\"objectType\":\"ServicePrincipal\",\"maxDegreeOfParallelismPerJob\":1323562973,\"minPriorityPerJob\":1522291140}}")
.toObject(CreateComputePolicyWithAccountParameters.class);
Assertions.assertEquals("usivye", model.name());
Assertions.assertEquals(UUID.fromString("2bc146ee-a90e-4197-8b64-eb06e89cf3be"), model.objectId());
Assertions.assertEquals(UUID.fromString("5db3c7a4-c6f9-4cd8-8fdb-94a2ce82af13"), model.objectId());
Assertions.assertEquals(AadObjectType.SERVICE_PRINCIPAL, model.objectType());
Assertions.assertEquals(1323562973, model.maxDegreeOfParallelismPerJob());
Assertions.assertEquals(1522291140, model.minPriorityPerJob());
Expand All @@ -27,13 +27,13 @@ public void testDeserialize() throws Exception {
public void testSerialize() throws Exception {
CreateComputePolicyWithAccountParameters model
= new CreateComputePolicyWithAccountParameters().withName("usivye")
.withObjectId(UUID.fromString("2bc146ee-a90e-4197-8b64-eb06e89cf3be"))
.withObjectId(UUID.fromString("5db3c7a4-c6f9-4cd8-8fdb-94a2ce82af13"))
.withObjectType(AadObjectType.SERVICE_PRINCIPAL)
.withMaxDegreeOfParallelismPerJob(1323562973)
.withMinPriorityPerJob(1522291140);
model = BinaryData.fromObject(model).toObject(CreateComputePolicyWithAccountParameters.class);
Assertions.assertEquals("usivye", model.name());
Assertions.assertEquals(UUID.fromString("2bc146ee-a90e-4197-8b64-eb06e89cf3be"), model.objectId());
Assertions.assertEquals(UUID.fromString("5db3c7a4-c6f9-4cd8-8fdb-94a2ce82af13"), model.objectId());
Assertions.assertEquals(AadObjectType.SERVICE_PRINCIPAL, model.objectType());
Assertions.assertEquals(1323562973, model.maxDegreeOfParallelismPerJob());
Assertions.assertEquals(1522291140, model.minPriorityPerJob());
Expand Down
Loading
Loading