diff --git a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
index c19f3f6c7da8..4946c92136df 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
+++ b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.13 (Unreleased)
+## 1.0.0-beta.1 (2023-04-24)
+
+- Azure Resource Manager NetAppFiles client library for Java. This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2022-09-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/netapp/azure-resourcemanager-netapp/README.md b/sdk/netapp/azure-resourcemanager-netapp/README.md
index d8729e619160..3cb7a7d74217 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/README.md
+++ b/sdk/netapp/azure-resourcemanager-netapp/README.md
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-netapp
- 1.0.0-beta.12
+ 1.0.0-beta.13
```
[//]: # ({x-version-update-end})
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java
index 2bb5e8d360c6..56dd402a284a 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java
@@ -255,7 +255,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.netapp")
.append("/")
- .append("1.0.0-beta.12");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountBackupsDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountBackupsDeleteMockTests.java
deleted file mode 100644
index d81092ddf647..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountBackupsDeleteMockTests.java
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AccountBackupsDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.accountBackups().delete("xotngfdguge", "zihgrkyu", "zabs", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountBackupsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountBackupsGetWithResponseMockTests.java
deleted file mode 100644
index 738437cd6131..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountBackupsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.Backup;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AccountBackupsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"location\":\"qbnj\",\"properties\":{\"backupId\":\"cgegydcwbo\",\"creationDate\":\"2021-01-16T19:47:43Z\",\"provisioningState\":\"vqqolih\",\"size\":1703396113637186556,\"label\":\"uaubrj\",\"backupType\":\"Manual\",\"failureReason\":\"xfuojrn\",\"volumeName\":\"flrzpas\",\"useExistingSnapshot\":true},\"id\":\"uimzdlyjd\",\"name\":\"qwmkyoquf\",\"type\":\"vruzslzojhpctfnm\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Backup response =
- manager
- .accountBackups()
- .getWithResponse("kcdqzhlct", "dunqnd", "fpch", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("qbnj", response.location());
- Assertions.assertEquals("uaubrj", response.label());
- Assertions.assertEquals(true, response.useExistingSnapshot());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountBackupsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountBackupsListMockTests.java
deleted file mode 100644
index 6f77b68f122a..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountBackupsListMockTests.java
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.Backup;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AccountBackupsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"location\":\"yb\",\"properties\":{\"backupId\":\"wpgdak\",\"creationDate\":\"2021-07-03T10:06:39Z\",\"provisioningState\":\"vl\",\"size\":1102852989585943128,\"label\":\"kcxk\",\"backupType\":\"Manual\",\"failureReason\":\"xmysuxswqrntv\",\"volumeName\":\"ijpstte\",\"useExistingSnapshot\":true},\"id\":\"pwcyyufmhr\",\"name\":\"nc\",\"type\":\"wmqs\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.accountBackups().list("utlwexxwla", "niexzsrzpgepq", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("yb", response.iterator().next().location());
- Assertions.assertEquals("kcxk", response.iterator().next().label());
- Assertions.assertEquals(true, response.iterator().next().useExistingSnapshot());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java
deleted file mode 100644
index b7c5105e7451..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AccountsRenewCredentialsMockTests {
- @Test
- public void testRenewCredentials() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.accounts().renewCredentials("sewgioilqukr", "dxtqmieoxo", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AuthorizeRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AuthorizeRequestTests.java
deleted file mode 100644
index 15446de183e6..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AuthorizeRequestTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.AuthorizeRequest;
-import org.junit.jupiter.api.Assertions;
-
-public final class AuthorizeRequestTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AuthorizeRequest model =
- BinaryData.fromString("{\"remoteVolumeResourceId\":\"ebwpucwwfvo\"}").toObject(AuthorizeRequest.class);
- Assertions.assertEquals("ebwpucwwfvo", model.remoteVolumeResourceId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AuthorizeRequest model = new AuthorizeRequest().withRemoteVolumeResourceId("ebwpucwwfvo");
- model = BinaryData.fromObject(model).toObject(AuthorizeRequest.class);
- Assertions.assertEquals("ebwpucwwfvo", model.remoteVolumeResourceId());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupInnerTests.java
deleted file mode 100644
index 58d64126365e..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupInnerTests.java
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.BackupInner;
-import org.junit.jupiter.api.Assertions;
-
-public final class BackupInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- BackupInner model =
- BinaryData
- .fromString(
- "{\"location\":\"apvhelxprgly\",\"properties\":{\"backupId\":\"dd\",\"creationDate\":\"2021-07-03T10:39:12Z\",\"provisioningState\":\"cuejrjxgci\",\"size\":3405568102133288247,\"label\":\"osx\",\"backupType\":\"Scheduled\",\"failureReason\":\"hzoymibmrqy\",\"volumeName\":\"ahwfluszdtmhrk\",\"useExistingSnapshot\":false},\"id\":\"yvoqa\",\"name\":\"piexpbtgiw\",\"type\":\"wo\"}")
- .toObject(BackupInner.class);
- Assertions.assertEquals("apvhelxprgly", model.location());
- Assertions.assertEquals("osx", model.label());
- Assertions.assertEquals(false, model.useExistingSnapshot());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- BackupInner model =
- new BackupInner().withLocation("apvhelxprgly").withLabel("osx").withUseExistingSnapshot(false);
- model = BinaryData.fromObject(model).toObject(BackupInner.class);
- Assertions.assertEquals("apvhelxprgly", model.location());
- Assertions.assertEquals("osx", model.label());
- Assertions.assertEquals(false, model.useExistingSnapshot());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPatchTests.java
deleted file mode 100644
index af1677356927..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPatchTests.java
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.BackupPatch;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class BackupPatchTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- BackupPatch model =
- BinaryData
- .fromString(
- "{\"tags\":{\"hykojoxafnndlpic\":\"kuwhh\",\"h\":\"koymkcd\",\"reqnovvqfov\":\"pkkpw\",\"rsndsytgadgvra\":\"jxywsuws\"},\"properties\":{\"backupId\":\"neqn\",\"creationDate\":\"2021-12-02T13:04:58Z\",\"provisioningState\":\"wlquuijfqkace\",\"size\":9040428680411345053,\"label\":\"pubjibw\",\"backupType\":\"Manual\",\"failureReason\":\"ohqkvpuvksgpls\",\"volumeName\":\"nynfsynljphuo\",\"useExistingSnapshot\":true}}")
- .toObject(BackupPatch.class);
- Assertions.assertEquals("kuwhh", model.tags().get("hykojoxafnndlpic"));
- Assertions.assertEquals("pubjibw", model.label());
- Assertions.assertEquals(true, model.useExistingSnapshot());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- BackupPatch model =
- new BackupPatch()
- .withTags(
- mapOf(
- "hykojoxafnndlpic",
- "kuwhh",
- "h",
- "koymkcd",
- "reqnovvqfov",
- "pkkpw",
- "rsndsytgadgvra",
- "jxywsuws"))
- .withLabel("pubjibw")
- .withUseExistingSnapshot(true);
- model = BinaryData.fromObject(model).toObject(BackupPatch.class);
- Assertions.assertEquals("kuwhh", model.tags().get("hykojoxafnndlpic"));
- Assertions.assertEquals("pubjibw", model.label());
- Assertions.assertEquals(true, model.useExistingSnapshot());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateMockTests.java
deleted file mode 100644
index b7f8dd5734c8..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateMockTests.java
+++ /dev/null
@@ -1,96 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.BackupPolicy;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class BackupPoliciesCreateMockTests {
- @Test
- public void testCreate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"etag\":\"fapaqtfer\",\"properties\":{\"backupPolicyId\":\"wexjkmfxapjwogq\",\"provisioningState\":\"Succeeded\",\"dailyBackupsToKeep\":1623831151,\"weeklyBackupsToKeep\":623740399,\"monthlyBackupsToKeep\":1894525187,\"volumesAssigned\":1873206195,\"enabled\":false,\"volumeBackups\":[]},\"location\":\"awbzasqb\",\"tags\":{\"yexaoguy\":\"jg\",\"ids\":\"i\"},\"id\":\"ault\",\"name\":\"ijjumfq\",\"type\":\"azlnqnmcjngzqdqx\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- BackupPolicy response =
- manager
- .backupPolicies()
- .define("zinkfkbgbzbowxeq")
- .withRegion("pnodawopqhe")
- .withExistingNetAppAccount("v", "qqxeyskon")
- .withTags(
- mapOf("bostzel", "tmcg", "tmzlbiojlv", "dlat", "r", "hrbbpneqvcwwyy", "nmokayzejnhlbk", "ochpprpr"))
- .withDailyBackupsToKeep(765217570)
- .withWeeklyBackupsToKeep(429988434)
- .withMonthlyBackupsToKeep(2064090558)
- .withEnabled(true)
- .create();
-
- Assertions.assertEquals("awbzasqb", response.location());
- Assertions.assertEquals("jg", response.tags().get("yexaoguy"));
- Assertions.assertEquals(1623831151, response.dailyBackupsToKeep());
- Assertions.assertEquals(623740399, response.weeklyBackupsToKeep());
- Assertions.assertEquals(1894525187, response.monthlyBackupsToKeep());
- Assertions.assertEquals(false, response.enabled());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java
deleted file mode 100644
index 866cead53bde..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class BackupPoliciesDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.backupPolicies().delete("zsu", "cohdx", "zlmcmuapcvhdb", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java
deleted file mode 100644
index d17666980643..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.BackupPolicy;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class BackupPoliciesGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"etag\":\"iq\",\"properties\":{\"backupPolicyId\":\"mexiitdfuxt\",\"provisioningState\":\"siibmiybnnustgn\",\"dailyBackupsToKeep\":11223363,\"weeklyBackupsToKeep\":1367151711,\"monthlyBackupsToKeep\":1842685093,\"volumesAssigned\":202183770,\"enabled\":false,\"volumeBackups\":[]},\"location\":\"qfoudorhcgyy\",\"tags\":{\"gcmjkavl\":\"twypundmbxh\",\"mftpmdtz\":\"or\",\"pvpbdbzqgqqiheds\":\"jltfvnzcyjtotpv\"},\"id\":\"qwthmky\",\"name\":\"bcysih\",\"type\":\"gqcwdhohsdtmc\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- BackupPolicy response =
- manager
- .backupPolicies()
- .getWithResponse("gv", "irpghriypoqeyh", "qhykprlpyzn", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("qfoudorhcgyy", response.location());
- Assertions.assertEquals("twypundmbxh", response.tags().get("gcmjkavl"));
- Assertions.assertEquals(11223363, response.dailyBackupsToKeep());
- Assertions.assertEquals(1367151711, response.weeklyBackupsToKeep());
- Assertions.assertEquals(1842685093, response.monthlyBackupsToKeep());
- Assertions.assertEquals(false, response.enabled());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java
deleted file mode 100644
index 7313dd33effa..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.BackupPolicy;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class BackupPoliciesListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"etag\":\"hsgz\",\"properties\":{\"backupPolicyId\":\"zbgomfgbeg\",\"provisioningState\":\"gleohi\",\"dailyBackupsToKeep\":131865797,\"weeklyBackupsToKeep\":974044007,\"monthlyBackupsToKeep\":198526916,\"volumesAssigned\":1087949642,\"enabled\":true,\"volumeBackups\":[]},\"location\":\"eebtijvacvb\",\"tags\":{\"nw\":\"bqqxlaj\"},\"id\":\"acevehjkuyx\",\"name\":\"afgaoqlt\",\"type\":\"aeylinm\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.backupPolicies().list("mfp", "hojeevy", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("eebtijvacvb", response.iterator().next().location());
- Assertions.assertEquals("bqqxlaj", response.iterator().next().tags().get("nw"));
- Assertions.assertEquals(131865797, response.iterator().next().dailyBackupsToKeep());
- Assertions.assertEquals(974044007, response.iterator().next().weeklyBackupsToKeep());
- Assertions.assertEquals(198526916, response.iterator().next().monthlyBackupsToKeep());
- Assertions.assertEquals(true, response.iterator().next().enabled());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListTests.java
deleted file mode 100644
index 307efecff8a6..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListTests.java
+++ /dev/null
@@ -1,97 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner;
-import com.azure.resourcemanager.netapp.models.BackupPoliciesList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class BackupPoliciesListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- BackupPoliciesList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"etag\":\"iyntorzihle\",\"properties\":{\"backupPolicyId\":\"jswsrmslyz\",\"provisioningState\":\"zbchckqqzqioxiy\",\"dailyBackupsToKeep\":1721034864,\"weeklyBackupsToKeep\":1896138936,\"monthlyBackupsToKeep\":1822288960,\"volumesAssigned\":2066516032,\"enabled\":false,\"volumeBackups\":[]},\"location\":\"rwyhqmibzyhwitsm\",\"tags\":{\"biknsorgjhxbld\":\"ynpcdpumnzgmwznm\",\"dmtnc\":\"lwwrl\",\"tllxdyhgsyocogj\":\"ok\",\"kvci\":\"tdtbnnhadooc\"},\"id\":\"hnvpamqgxq\",\"name\":\"u\",\"type\":\"zikywgg\"},{\"etag\":\"allatmelwuipic\",\"properties\":{\"backupPolicyId\":\"zkzivgvvcnay\",\"provisioningState\":\"yrnxxmueedn\",\"dailyBackupsToKeep\":1429248323,\"weeklyBackupsToKeep\":233559890,\"monthlyBackupsToKeep\":928139019,\"volumesAssigned\":1199547484,\"enabled\":false,\"volumeBackups\":[]},\"location\":\"ealmfmtdaaygdvwv\",\"tags\":{\"qagvrvm\":\"ohgwxrtfudxepxg\",\"dblx\":\"pkukghi\",\"fnjhfjxwmszkkfo\":\"wi\"},\"id\":\"rey\",\"name\":\"kzikfjawneaivxwc\",\"type\":\"elpcirelsfeaenwa\"},{\"etag\":\"atklddxbjhwuaa\",\"properties\":{\"backupPolicyId\":\"zjosp\",\"provisioningState\":\"oulpjrv\",\"dailyBackupsToKeep\":1536946764,\"weeklyBackupsToKeep\":1986199851,\"monthlyBackupsToKeep\":1902797615,\"volumesAssigned\":1837530813,\"enabled\":true,\"volumeBackups\":[]},\"location\":\"tx\",\"tags\":{\"tq\":\"skfc\",\"gqggebdunygae\":\"miekkezzikhlyfjh\",\"fatpxllrxcyjmoa\":\"idb\",\"arm\":\"su\"},\"id\":\"wdmjsjqbjhhyx\",\"name\":\"rw\",\"type\":\"yc\"}]}")
- .toObject(BackupPoliciesList.class);
- Assertions.assertEquals("rwyhqmibzyhwitsm", model.value().get(0).location());
- Assertions.assertEquals("ynpcdpumnzgmwznm", model.value().get(0).tags().get("biknsorgjhxbld"));
- Assertions.assertEquals(1721034864, model.value().get(0).dailyBackupsToKeep());
- Assertions.assertEquals(1896138936, model.value().get(0).weeklyBackupsToKeep());
- Assertions.assertEquals(1822288960, model.value().get(0).monthlyBackupsToKeep());
- Assertions.assertEquals(false, model.value().get(0).enabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- BackupPoliciesList model =
- new BackupPoliciesList()
- .withValue(
- Arrays
- .asList(
- new BackupPolicyInner()
- .withLocation("rwyhqmibzyhwitsm")
- .withTags(
- mapOf(
- "biknsorgjhxbld",
- "ynpcdpumnzgmwznm",
- "dmtnc",
- "lwwrl",
- "tllxdyhgsyocogj",
- "ok",
- "kvci",
- "tdtbnnhadooc"))
- .withDailyBackupsToKeep(1721034864)
- .withWeeklyBackupsToKeep(1896138936)
- .withMonthlyBackupsToKeep(1822288960)
- .withEnabled(false),
- new BackupPolicyInner()
- .withLocation("ealmfmtdaaygdvwv")
- .withTags(
- mapOf("qagvrvm", "ohgwxrtfudxepxg", "dblx", "pkukghi", "fnjhfjxwmszkkfo", "wi"))
- .withDailyBackupsToKeep(1429248323)
- .withWeeklyBackupsToKeep(233559890)
- .withMonthlyBackupsToKeep(928139019)
- .withEnabled(false),
- new BackupPolicyInner()
- .withLocation("tx")
- .withTags(
- mapOf(
- "tq",
- "skfc",
- "gqggebdunygae",
- "miekkezzikhlyfjh",
- "fatpxllrxcyjmoa",
- "idb",
- "arm",
- "su"))
- .withDailyBackupsToKeep(1536946764)
- .withWeeklyBackupsToKeep(1986199851)
- .withMonthlyBackupsToKeep(1902797615)
- .withEnabled(true)));
- model = BinaryData.fromObject(model).toObject(BackupPoliciesList.class);
- Assertions.assertEquals("rwyhqmibzyhwitsm", model.value().get(0).location());
- Assertions.assertEquals("ynpcdpumnzgmwznm", model.value().get(0).tags().get("biknsorgjhxbld"));
- Assertions.assertEquals(1721034864, model.value().get(0).dailyBackupsToKeep());
- Assertions.assertEquals(1896138936, model.value().get(0).weeklyBackupsToKeep());
- Assertions.assertEquals(1822288960, model.value().get(0).monthlyBackupsToKeep());
- Assertions.assertEquals(false, model.value().get(0).enabled());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyInnerTests.java
deleted file mode 100644
index 93d034eb5cb1..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyInnerTests.java
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class BackupPolicyInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- BackupPolicyInner model =
- BinaryData
- .fromString(
- "{\"etag\":\"uhpkxkgymar\",\"properties\":{\"backupPolicyId\":\"n\",\"provisioningState\":\"xqugjhkycubedd\",\"dailyBackupsToKeep\":2056337569,\"weeklyBackupsToKeep\":1063119881,\"monthlyBackupsToKeep\":1853639964,\"volumesAssigned\":1153520576,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"mnjijpxacqqudf\",\"backupsCount\":1238431927,\"policyEnabled\":false},{\"volumeName\":\"aabjyvayffimrz\",\"backupsCount\":1007625802,\"policyEnabled\":true},{\"volumeName\":\"gsexne\",\"backupsCount\":779817958,\"policyEnabled\":false},{\"volumeName\":\"wmewzsyy\",\"backupsCount\":1091496648,\"policyEnabled\":true}]},\"location\":\"i\",\"tags\":{\"qbrqubpaxhexiili\":\"dpfrxtrthzvaytdw\"},\"id\":\"pdtii\",\"name\":\"q\",\"type\":\"d\"}")
- .toObject(BackupPolicyInner.class);
- Assertions.assertEquals("i", model.location());
- Assertions.assertEquals("dpfrxtrthzvaytdw", model.tags().get("qbrqubpaxhexiili"));
- Assertions.assertEquals(2056337569, model.dailyBackupsToKeep());
- Assertions.assertEquals(1063119881, model.weeklyBackupsToKeep());
- Assertions.assertEquals(1853639964, model.monthlyBackupsToKeep());
- Assertions.assertEquals(false, model.enabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- BackupPolicyInner model =
- new BackupPolicyInner()
- .withLocation("i")
- .withTags(mapOf("qbrqubpaxhexiili", "dpfrxtrthzvaytdw"))
- .withDailyBackupsToKeep(2056337569)
- .withWeeklyBackupsToKeep(1063119881)
- .withMonthlyBackupsToKeep(1853639964)
- .withEnabled(false);
- model = BinaryData.fromObject(model).toObject(BackupPolicyInner.class);
- Assertions.assertEquals("i", model.location());
- Assertions.assertEquals("dpfrxtrthzvaytdw", model.tags().get("qbrqubpaxhexiili"));
- Assertions.assertEquals(2056337569, model.dailyBackupsToKeep());
- Assertions.assertEquals(1063119881, model.weeklyBackupsToKeep());
- Assertions.assertEquals(1853639964, model.monthlyBackupsToKeep());
- Assertions.assertEquals(false, model.enabled());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPatchTests.java
deleted file mode 100644
index abf1d2e67f70..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPatchTests.java
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.BackupPolicyPatch;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class BackupPolicyPatchTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- BackupPolicyPatch model =
- BinaryData
- .fromString(
- "{\"properties\":{\"backupPolicyId\":\"lt\",\"provisioningState\":\"cjvefkdlfo\",\"dailyBackupsToKeep\":1252976241,\"weeklyBackupsToKeep\":1706699033,\"monthlyBackupsToKeep\":1236120195,\"volumesAssigned\":2109908244,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"lpqblylsyxk\",\"backupsCount\":648285682,\"policyEnabled\":false},{\"volumeName\":\"r\",\"backupsCount\":1868480291,\"policyEnabled\":false},{\"volumeName\":\"sdszue\",\"backupsCount\":1236978734,\"policyEnabled\":false},{\"volumeName\":\"f\",\"backupsCount\":1389741266,\"policyEnabled\":false}]},\"location\":\"pnqi\",\"tags\":{\"wyhmlw\":\"nvkjjxdxrbuukzcl\",\"ofncckwyfzqwhxxb\":\"aztz\",\"xzfe\":\"yq\",\"mncwsobqwcsdb\":\"ztppriolxorjalto\"},\"id\":\"wdcfhucqdpfuv\",\"name\":\"lsbjjcanvxbv\",\"type\":\"vudutncor\"}")
- .toObject(BackupPolicyPatch.class);
- Assertions.assertEquals("pnqi", model.location());
- Assertions.assertEquals("nvkjjxdxrbuukzcl", model.tags().get("wyhmlw"));
- Assertions.assertEquals(1252976241, model.dailyBackupsToKeep());
- Assertions.assertEquals(1706699033, model.weeklyBackupsToKeep());
- Assertions.assertEquals(1236120195, model.monthlyBackupsToKeep());
- Assertions.assertEquals(false, model.enabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- BackupPolicyPatch model =
- new BackupPolicyPatch()
- .withLocation("pnqi")
- .withTags(
- mapOf(
- "wyhmlw",
- "nvkjjxdxrbuukzcl",
- "ofncckwyfzqwhxxb",
- "aztz",
- "xzfe",
- "yq",
- "mncwsobqwcsdb",
- "ztppriolxorjalto"))
- .withDailyBackupsToKeep(1252976241)
- .withWeeklyBackupsToKeep(1706699033)
- .withMonthlyBackupsToKeep(1236120195)
- .withEnabled(false);
- model = BinaryData.fromObject(model).toObject(BackupPolicyPatch.class);
- Assertions.assertEquals("pnqi", model.location());
- Assertions.assertEquals("nvkjjxdxrbuukzcl", model.tags().get("wyhmlw"));
- Assertions.assertEquals(1252976241, model.dailyBackupsToKeep());
- Assertions.assertEquals(1706699033, model.weeklyBackupsToKeep());
- Assertions.assertEquals(1236120195, model.monthlyBackupsToKeep());
- Assertions.assertEquals(false, model.enabled());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPropertiesTests.java
deleted file mode 100644
index 2e7929375d61..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPropertiesTests.java
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class BackupPolicyPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- BackupPolicyProperties model =
- BinaryData
- .fromString(
- "{\"backupPolicyId\":\"axoruzfgsquy\",\"provisioningState\":\"rxxle\",\"dailyBackupsToKeep\":971666711,\"weeklyBackupsToKeep\":1899778245,\"monthlyBackupsToKeep\":1921470091,\"volumesAssigned\":726747953,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"xuqlcvydypat\",\"backupsCount\":350928008,\"policyEnabled\":false},{\"volumeName\":\"kniod\",\"backupsCount\":887664704,\"policyEnabled\":false},{\"volumeName\":\"nuj\",\"backupsCount\":1652844269,\"policyEnabled\":true}]}")
- .toObject(BackupPolicyProperties.class);
- Assertions.assertEquals(971666711, model.dailyBackupsToKeep());
- Assertions.assertEquals(1899778245, model.weeklyBackupsToKeep());
- Assertions.assertEquals(1921470091, model.monthlyBackupsToKeep());
- Assertions.assertEquals(true, model.enabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- BackupPolicyProperties model =
- new BackupPolicyProperties()
- .withDailyBackupsToKeep(971666711)
- .withWeeklyBackupsToKeep(1899778245)
- .withMonthlyBackupsToKeep(1921470091)
- .withEnabled(true);
- model = BinaryData.fromObject(model).toObject(BackupPolicyProperties.class);
- Assertions.assertEquals(971666711, model.dailyBackupsToKeep());
- Assertions.assertEquals(1899778245, model.weeklyBackupsToKeep());
- Assertions.assertEquals(1921470091, model.monthlyBackupsToKeep());
- Assertions.assertEquals(true, model.enabled());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPropertiesTests.java
deleted file mode 100644
index f3a585e18467..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPropertiesTests.java
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.BackupProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class BackupPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- BackupProperties model =
- BinaryData
- .fromString(
- "{\"backupId\":\"washr\",\"creationDate\":\"2021-08-01T13:56:15Z\",\"provisioningState\":\"cnqxwbpokulpi\",\"size\":6830630218833714201,\"label\":\"sipqii\",\"backupType\":\"Manual\",\"failureReason\":\"qerpqlpqwcc\",\"volumeName\":\"qgbdbuta\",\"useExistingSnapshot\":true}")
- .toObject(BackupProperties.class);
- Assertions.assertEquals("sipqii", model.label());
- Assertions.assertEquals(true, model.useExistingSnapshot());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- BackupProperties model = new BackupProperties().withLabel("sipqii").withUseExistingSnapshot(true);
- model = BinaryData.fromObject(model).toObject(BackupProperties.class);
- Assertions.assertEquals("sipqii", model.label());
- Assertions.assertEquals(true, model.useExistingSnapshot());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupRestoreFilesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupRestoreFilesTests.java
deleted file mode 100644
index e88281283121..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupRestoreFilesTests.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.BackupRestoreFiles;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class BackupRestoreFilesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- BackupRestoreFiles model =
- BinaryData
- .fromString(
- "{\"fileList\":[\"kkxwslol\"],\"restoreFilePath\":\"pvuzlmv\",\"destinationVolumeId\":\"elfk\"}")
- .toObject(BackupRestoreFiles.class);
- Assertions.assertEquals("kkxwslol", model.fileList().get(0));
- Assertions.assertEquals("pvuzlmv", model.restoreFilePath());
- Assertions.assertEquals("elfk", model.destinationVolumeId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- BackupRestoreFiles model =
- new BackupRestoreFiles()
- .withFileList(Arrays.asList("kkxwslol"))
- .withRestoreFilePath("pvuzlmv")
- .withDestinationVolumeId("elfk");
- model = BinaryData.fromObject(model).toObject(BackupRestoreFiles.class);
- Assertions.assertEquals("kkxwslol", model.fileList().get(0));
- Assertions.assertEquals("pvuzlmv", model.restoreFilePath());
- Assertions.assertEquals("elfk", model.destinationVolumeId());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupStatusInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupStatusInnerTests.java
deleted file mode 100644
index a4fae399db19..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupStatusInnerTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.BackupStatusInner;
-
-public final class BackupStatusInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- BackupStatusInner model =
- BinaryData
- .fromString(
- "{\"healthy\":true,\"relationshipStatus\":\"Idle\",\"mirrorState\":\"Mirrored\",\"unhealthyReason\":\"rxsagafcnihgwqa\",\"errorMessage\":\"edgfbcvkcvq\",\"lastTransferSize\":6395460850482092633,\"lastTransferType\":\"dcvd\",\"totalTransferBytes\":1691075680469925447}")
- .toObject(BackupStatusInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- BackupStatusInner model = new BackupStatusInner();
- model = BinaryData.fromObject(model).toObject(BackupStatusInner.class);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java
deleted file mode 100644
index ff1244170964..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.Backup;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class BackupsCreateMockTests {
- @Test
- public void testCreate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"location\":\"nkeifz\",\"properties\":{\"backupId\":\"mkdasv\",\"creationDate\":\"2021-10-31T03:36:23Z\",\"provisioningState\":\"Succeeded\",\"size\":2167042291845318263,\"label\":\"ldforobwj\",\"backupType\":\"Scheduled\",\"failureReason\":\"bfhfovvacqp\",\"volumeName\":\"uodxesza\",\"useExistingSnapshot\":false},\"id\":\"awumuaslzkwrrwo\",\"name\":\"cqucwyhahnom\",\"type\":\"rkywuhpsvfuu\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Backup response =
- manager
- .backups()
- .define("revkhgnlnzo")
- .withRegion("zlrpiqywncvj")
- .withExistingVolume("ismjqfrddgamqu", "iosrsjuivfcdis", "irnxz", "czexrxzbujrtrhqv")
- .withLabel("ljeamu")
- .withUseExistingSnapshot(true)
- .create();
-
- Assertions.assertEquals("nkeifz", response.location());
- Assertions.assertEquals("ldforobwj", response.label());
- Assertions.assertEquals(false, response.useExistingSnapshot());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteMockTests.java
deleted file mode 100644
index 8cb5ca9a43bf..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteMockTests.java
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class BackupsDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .backups()
- .delete(
- "fuzboyjathwtzolb",
- "emwmdxmebwjs",
- "jpahlxvea",
- "f",
- "xnmwmqtibxyijddt",
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetStatusWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetStatusWithResponseMockTests.java
deleted file mode 100644
index 710c2909016b..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetStatusWithResponseMockTests.java
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.BackupStatus;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class BackupsGetStatusWithResponseMockTests {
- @Test
- public void testGetStatusWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"healthy\":true,\"relationshipStatus\":\"Transferring\",\"mirrorState\":\"Mirrored\",\"unhealthyReason\":\"mes\",\"errorMessage\":\"dlpagzrcxfail\",\"lastTransferSize\":9166652088180488730,\"lastTransferType\":\"dboxdfgsftufqobr\",\"totalTransferBytes\":3034279146046559675}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- BackupStatus response =
- manager
- .backups()
- .getStatusWithResponse("pypqtgsfj", "cbslhhx", "db", "vodhtn", com.azure.core.util.Context.NONE)
- .getValue();
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeRestoreStatusWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeRestoreStatusWithResponseMockTests.java
deleted file mode 100644
index 5c2d015d53d7..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeRestoreStatusWithResponseMockTests.java
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.RestoreStatus;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class BackupsGetVolumeRestoreStatusWithResponseMockTests {
- @Test
- public void testGetVolumeRestoreStatusWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"healthy\":false,\"relationshipStatus\":\"Idle\",\"mirrorState\":\"Mirrored\",\"unhealthyReason\":\"ulcdisdosf\",\"errorMessage\":\"jsvg\",\"totalTransferBytes\":4500706087685713413}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- RestoreStatus response =
- manager
- .backups()
- .getVolumeRestoreStatusWithResponse(
- "cgcckknhxkizvyt", "rzvul", "r", "aeranokqgukkjqnv", com.azure.core.util.Context.NONE)
- .getValue();
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java
deleted file mode 100644
index 24672a1e390c..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.Backup;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class BackupsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"location\":\"qtgdqohmcwsl\",\"properties\":{\"backupId\":\"izetpw\",\"creationDate\":\"2021-01-12T03:51:17Z\",\"provisioningState\":\"llibphbqzmizak\",\"size\":2130055064209410437,\"label\":\"jpdn\",\"backupType\":\"Manual\",\"failureReason\":\"joylh\",\"volumeName\":\"muoyxprimr\",\"useExistingSnapshot\":false},\"id\":\"eecjmeis\",\"name\":\"stvasylwxdzaumw\",\"type\":\"oohgu\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Backup response =
- manager
- .backups()
- .getWithResponse(
- "oajvgcxtxjcs",
- "eafidltugsresm",
- "ssjhoiftxfkf",
- "egprhptil",
- "ucb",
- com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("qtgdqohmcwsl", response.location());
- Assertions.assertEquals("jpdn", response.label());
- Assertions.assertEquals(false, response.useExistingSnapshot());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListMockTests.java
deleted file mode 100644
index ac7706ecaff7..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListMockTests.java
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.Backup;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class BackupsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"location\":\"xgccknfnw\",\"properties\":{\"backupId\":\"tmvpdvjdhtt\",\"creationDate\":\"2021-07-31T02:44:44Z\",\"provisioningState\":\"edxihchrphkmcrj\",\"size\":3614573403784565190,\"label\":\"fzpbgtgkyl\",\"backupType\":\"Scheduled\",\"failureReason\":\"rjeuut\",\"volumeName\":\"xezw\",\"useExistingSnapshot\":true},\"id\":\"vbwnhhtq\",\"name\":\"gehgppi\",\"type\":\"ifhpf\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.backups().list("r", "vyc", "t", "c", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("xgccknfnw", response.iterator().next().location());
- Assertions.assertEquals("fzpbgtgkyl", response.iterator().next().label());
- Assertions.assertEquals(true, response.iterator().next().useExistingSnapshot());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListTests.java
deleted file mode 100644
index 42bb5e8c309b..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListTests.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.BackupInner;
-import com.azure.resourcemanager.netapp.models.BackupsList;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class BackupsListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- BackupsList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"location\":\"twuoegrpkhjwni\",\"properties\":{\"backupId\":\"sluicpdggkzz\",\"creationDate\":\"2021-06-06T06:21:57Z\",\"provisioningState\":\"mpaxmodfvuefywsb\",\"size\":4032235244253302526,\"label\":\"yhrfouyftaakcpw\",\"backupType\":\"Scheduled\",\"failureReason\":\"qtmnubexkpzk\",\"volumeName\":\"ondjmq\",\"useExistingSnapshot\":true},\"id\":\"pomgkopkwhojvp\",\"name\":\"jqg\",\"type\":\"ysmocmbqfqvmkcxo\"}]}")
- .toObject(BackupsList.class);
- Assertions.assertEquals("twuoegrpkhjwni", model.value().get(0).location());
- Assertions.assertEquals("yhrfouyftaakcpw", model.value().get(0).label());
- Assertions.assertEquals(true, model.value().get(0).useExistingSnapshot());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- BackupsList model =
- new BackupsList()
- .withValue(
- Arrays
- .asList(
- new BackupInner()
- .withLocation("twuoegrpkhjwni")
- .withLabel("yhrfouyftaakcpw")
- .withUseExistingSnapshot(true)));
- model = BinaryData.fromObject(model).toObject(BackupsList.class);
- Assertions.assertEquals("twuoegrpkhjwni", model.value().get(0).location());
- Assertions.assertEquals("yhrfouyftaakcpw", model.value().get(0).label());
- Assertions.assertEquals(true, model.value().get(0).useExistingSnapshot());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsRestoreFilesMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsRestoreFilesMockTests.java
deleted file mode 100644
index f7fc54d48438..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsRestoreFilesMockTests.java
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.BackupRestoreFiles;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class BackupsRestoreFilesMockTests {
- @Test
- public void testRestoreFiles() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .backups()
- .restoreFiles(
- "qcttadijaeukmrsi",
- "ekpndzaapmudq",
- "eqw",
- "gp",
- "bu",
- new BackupRestoreFiles()
- .withFileList(Arrays.asList("wyxebeybpmzz", "rtffyaqitmh", "eioqaqhvse"))
- .withRestoreFilePath("uqyrxpdl")
- .withDestinationVolumeId("gql"),
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakFileLocksRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakFileLocksRequestTests.java
deleted file mode 100644
index 8e20487eaea1..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakFileLocksRequestTests.java
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest;
-import org.junit.jupiter.api.Assertions;
-
-public final class BreakFileLocksRequestTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- BreakFileLocksRequest model =
- BinaryData
- .fromString("{\"clientIp\":\"zka\",\"confirmRunningDisruptiveOperation\":false}")
- .toObject(BreakFileLocksRequest.class);
- Assertions.assertEquals("zka", model.clientIp());
- Assertions.assertEquals(false, model.confirmRunningDisruptiveOperation());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- BreakFileLocksRequest model =
- new BreakFileLocksRequest().withClientIp("zka").withConfirmRunningDisruptiveOperation(false);
- model = BinaryData.fromObject(model).toObject(BreakFileLocksRequest.class);
- Assertions.assertEquals("zka", model.clientIp());
- Assertions.assertEquals(false, model.confirmRunningDisruptiveOperation());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakReplicationRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakReplicationRequestTests.java
deleted file mode 100644
index 8cd4fc402e8b..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakReplicationRequestTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.BreakReplicationRequest;
-import org.junit.jupiter.api.Assertions;
-
-public final class BreakReplicationRequestTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- BreakReplicationRequest model =
- BinaryData.fromString("{\"forceBreakReplication\":false}").toObject(BreakReplicationRequest.class);
- Assertions.assertEquals(false, model.forceBreakReplication());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- BreakReplicationRequest model = new BreakReplicationRequest().withForceBreakReplication(false);
- model = BinaryData.fromObject(model).toObject(BreakReplicationRequest.class);
- Assertions.assertEquals(false, model.forceBreakReplication());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java
deleted file mode 100644
index 64c9ab99dd3a..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner;
-import com.azure.resourcemanager.netapp.models.EncryptionType;
-import com.azure.resourcemanager.netapp.models.QosType;
-import com.azure.resourcemanager.netapp.models.ServiceLevel;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class CapacityPoolInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CapacityPoolInner model =
- BinaryData
- .fromString(
- "{\"etag\":\"vdfwatkpn\",\"properties\":{\"poolId\":\"lexxbczwtru\",\"size\":4653794584543146117,\"serviceLevel\":\"Standard\",\"provisioningState\":\"qjvsovmyokacs\",\"totalThroughputMibps\":2.3299038,\"utilizedThroughputMibps\":94.998985,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Single\"},\"location\":\"mflbv\",\"tags\":{\"ciwwzjuqkhr\":\"hrk\",\"oskg\":\"ajiwkuo\",\"vxieduugidyj\":\"sauuimj\",\"pclhocohslk\":\"rfbyaosvexcso\"},\"id\":\"vleggzfbuhfmvfax\",\"name\":\"ffeii\",\"type\":\"hl\"}")
- .toObject(CapacityPoolInner.class);
- Assertions.assertEquals("mflbv", model.location());
- Assertions.assertEquals("hrk", model.tags().get("ciwwzjuqkhr"));
- Assertions.assertEquals(4653794584543146117L, model.size());
- Assertions.assertEquals(ServiceLevel.STANDARD, model.serviceLevel());
- Assertions.assertEquals(QosType.MANUAL, model.qosType());
- Assertions.assertEquals(false, model.coolAccess());
- Assertions.assertEquals(EncryptionType.SINGLE, model.encryptionType());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CapacityPoolInner model =
- new CapacityPoolInner()
- .withLocation("mflbv")
- .withTags(
- mapOf(
- "ciwwzjuqkhr",
- "hrk",
- "oskg",
- "ajiwkuo",
- "vxieduugidyj",
- "sauuimj",
- "pclhocohslk",
- "rfbyaosvexcso"))
- .withSize(4653794584543146117L)
- .withServiceLevel(ServiceLevel.STANDARD)
- .withQosType(QosType.MANUAL)
- .withCoolAccess(false)
- .withEncryptionType(EncryptionType.SINGLE);
- model = BinaryData.fromObject(model).toObject(CapacityPoolInner.class);
- Assertions.assertEquals("mflbv", model.location());
- Assertions.assertEquals("hrk", model.tags().get("ciwwzjuqkhr"));
- Assertions.assertEquals(4653794584543146117L, model.size());
- Assertions.assertEquals(ServiceLevel.STANDARD, model.serviceLevel());
- Assertions.assertEquals(QosType.MANUAL, model.qosType());
- Assertions.assertEquals(false, model.coolAccess());
- Assertions.assertEquals(EncryptionType.SINGLE, model.encryptionType());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java
deleted file mode 100644
index f580b877ec2c..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java
+++ /dev/null
@@ -1,98 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner;
-import com.azure.resourcemanager.netapp.models.CapacityPoolList;
-import com.azure.resourcemanager.netapp.models.EncryptionType;
-import com.azure.resourcemanager.netapp.models.QosType;
-import com.azure.resourcemanager.netapp.models.ServiceLevel;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class CapacityPoolListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CapacityPoolList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"etag\":\"asxazjpqyegualhb\",\"properties\":{\"poolId\":\"hejjz\",\"size\":246259275856309822,\"serviceLevel\":\"Ultra\",\"provisioningState\":\"gwdslfhotwm\",\"totalThroughputMibps\":56.16594,\"utilizedThroughputMibps\":86.83051,\"qosType\":\"Auto\",\"coolAccess\":true,\"encryptionType\":\"Double\"},\"location\":\"cftadeh\",\"tags\":{\"wd\":\"tyfsoppusuesn\",\"hctbqvudwxdn\":\"jbavorxzdm\"},\"id\":\"nvowgujju\",\"name\":\"wdkcglhsl\",\"type\":\"zj\"},{\"etag\":\"ggd\",\"properties\":{\"poolId\":\"ixhbkuofqweykhm\",\"size\":134874479412475399,\"serviceLevel\":\"Premium\",\"provisioningState\":\"yexfwh\",\"totalThroughputMibps\":85.08707,\"utilizedThroughputMibps\":59.6065,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Single\"},\"location\":\"tynnaamdectehfi\",\"tags\":{\"hezrkgq\":\"jeyp\"},\"id\":\"c\",\"name\":\"refovgmkqsleyyvx\",\"type\":\"qjpkcattpngjcrc\"},{\"etag\":\"sqpjhvmdajvn\",\"properties\":{\"poolId\":\"ounqecano\",\"size\":4529960801894599237,\"serviceLevel\":\"Premium\",\"provisioningState\":\"hy\",\"totalThroughputMibps\":25.772358,\"utilizedThroughputMibps\":40.584183,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Single\"},\"location\":\"atuokthfuiu\",\"tags\":{\"zydagfuaxbezyiuo\":\"sfcpkvxodpuozm\",\"dxwzywqsmbsurexi\":\"ktwh\",\"yocf\":\"o\",\"uxh\":\"fksymddystki\"},\"id\":\"yudxorrqnbp\",\"name\":\"czvyifq\",\"type\":\"vkd\"}],\"nextLink\":\"sllr\"}")
- .toObject(CapacityPoolList.class);
- Assertions.assertEquals("cftadeh", model.value().get(0).location());
- Assertions.assertEquals("tyfsoppusuesn", model.value().get(0).tags().get("wd"));
- Assertions.assertEquals(246259275856309822L, model.value().get(0).size());
- Assertions.assertEquals(ServiceLevel.ULTRA, model.value().get(0).serviceLevel());
- Assertions.assertEquals(QosType.AUTO, model.value().get(0).qosType());
- Assertions.assertEquals(true, model.value().get(0).coolAccess());
- Assertions.assertEquals(EncryptionType.DOUBLE, model.value().get(0).encryptionType());
- Assertions.assertEquals("sllr", model.nextLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CapacityPoolList model =
- new CapacityPoolList()
- .withValue(
- Arrays
- .asList(
- new CapacityPoolInner()
- .withLocation("cftadeh")
- .withTags(mapOf("wd", "tyfsoppusuesn", "hctbqvudwxdn", "jbavorxzdm"))
- .withSize(246259275856309822L)
- .withServiceLevel(ServiceLevel.ULTRA)
- .withQosType(QosType.AUTO)
- .withCoolAccess(true)
- .withEncryptionType(EncryptionType.DOUBLE),
- new CapacityPoolInner()
- .withLocation("tynnaamdectehfi")
- .withTags(mapOf("hezrkgq", "jeyp"))
- .withSize(134874479412475399L)
- .withServiceLevel(ServiceLevel.PREMIUM)
- .withQosType(QosType.MANUAL)
- .withCoolAccess(false)
- .withEncryptionType(EncryptionType.SINGLE),
- new CapacityPoolInner()
- .withLocation("atuokthfuiu")
- .withTags(
- mapOf(
- "zydagfuaxbezyiuo",
- "sfcpkvxodpuozm",
- "dxwzywqsmbsurexi",
- "ktwh",
- "yocf",
- "o",
- "uxh",
- "fksymddystki"))
- .withSize(4529960801894599237L)
- .withServiceLevel(ServiceLevel.PREMIUM)
- .withQosType(QosType.MANUAL)
- .withCoolAccess(true)
- .withEncryptionType(EncryptionType.SINGLE)))
- .withNextLink("sllr");
- model = BinaryData.fromObject(model).toObject(CapacityPoolList.class);
- Assertions.assertEquals("cftadeh", model.value().get(0).location());
- Assertions.assertEquals("tyfsoppusuesn", model.value().get(0).tags().get("wd"));
- Assertions.assertEquals(246259275856309822L, model.value().get(0).size());
- Assertions.assertEquals(ServiceLevel.ULTRA, model.value().get(0).serviceLevel());
- Assertions.assertEquals(QosType.AUTO, model.value().get(0).qosType());
- Assertions.assertEquals(true, model.value().get(0).coolAccess());
- Assertions.assertEquals(EncryptionType.DOUBLE, model.value().get(0).encryptionType());
- Assertions.assertEquals("sllr", model.nextLink());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java
deleted file mode 100644
index 232d47fdf2c9..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.CapacityPoolPatch;
-import com.azure.resourcemanager.netapp.models.QosType;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class CapacityPoolPatchTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CapacityPoolPatch model =
- BinaryData
- .fromString(
- "{\"properties\":{\"size\":8593552720128453851,\"qosType\":\"Auto\",\"coolAccess\":true},\"location\":\"spyd\",\"tags\":{\"kbldngkpocipa\":\"oenkouknvudwti\"},\"id\":\"yxoegukgjnp\",\"name\":\"ucgygevqz\",\"type\":\"typmrbpizcdrqjsd\"}")
- .toObject(CapacityPoolPatch.class);
- Assertions.assertEquals("spyd", model.location());
- Assertions.assertEquals("oenkouknvudwti", model.tags().get("kbldngkpocipa"));
- Assertions.assertEquals(8593552720128453851L, model.size());
- Assertions.assertEquals(QosType.AUTO, model.qosType());
- Assertions.assertEquals(true, model.coolAccess());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CapacityPoolPatch model =
- new CapacityPoolPatch()
- .withLocation("spyd")
- .withTags(mapOf("kbldngkpocipa", "oenkouknvudwti"))
- .withSize(8593552720128453851L)
- .withQosType(QosType.AUTO)
- .withCoolAccess(true);
- model = BinaryData.fromObject(model).toObject(CapacityPoolPatch.class);
- Assertions.assertEquals("spyd", model.location());
- Assertions.assertEquals("oenkouknvudwti", model.tags().get("kbldngkpocipa"));
- Assertions.assertEquals(8593552720128453851L, model.size());
- Assertions.assertEquals(QosType.AUTO, model.qosType());
- Assertions.assertEquals(true, model.coolAccess());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java
deleted file mode 100644
index e1411ca5a080..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.CheckAvailabilityResponseInner;
-import com.azure.resourcemanager.netapp.models.InAvailabilityReasonType;
-import org.junit.jupiter.api.Assertions;
-
-public final class CheckAvailabilityResponseInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CheckAvailabilityResponseInner model =
- BinaryData
- .fromString("{\"isAvailable\":true,\"reason\":\"Invalid\",\"message\":\"qidtqajzyu\"}")
- .toObject(CheckAvailabilityResponseInner.class);
- Assertions.assertEquals(true, model.isAvailable());
- Assertions.assertEquals(InAvailabilityReasonType.INVALID, model.reason());
- Assertions.assertEquals("qidtqajzyu", model.message());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CheckAvailabilityResponseInner model =
- new CheckAvailabilityResponseInner()
- .withIsAvailable(true)
- .withReason(InAvailabilityReasonType.INVALID)
- .withMessage("qidtqajzyu");
- model = BinaryData.fromObject(model).toObject(CheckAvailabilityResponseInner.class);
- Assertions.assertEquals(true, model.isAvailable());
- Assertions.assertEquals(InAvailabilityReasonType.INVALID, model.reason());
- Assertions.assertEquals("qidtqajzyu", model.message());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DailyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DailyScheduleTests.java
deleted file mode 100644
index 93b059135108..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DailyScheduleTests.java
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.DailySchedule;
-import org.junit.jupiter.api.Assertions;
-
-public final class DailyScheduleTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DailySchedule model =
- BinaryData
- .fromString(
- "{\"snapshotsToKeep\":199039203,\"hour\":20287236,\"minute\":1409341290,\"usedBytes\":6033840789921327792}")
- .toObject(DailySchedule.class);
- Assertions.assertEquals(199039203, model.snapshotsToKeep());
- Assertions.assertEquals(20287236, model.hour());
- Assertions.assertEquals(1409341290, model.minute());
- Assertions.assertEquals(6033840789921327792L, model.usedBytes());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DailySchedule model =
- new DailySchedule()
- .withSnapshotsToKeep(199039203)
- .withHour(20287236)
- .withMinute(1409341290)
- .withUsedBytes(6033840789921327792L);
- model = BinaryData.fromObject(model).toObject(DailySchedule.class);
- Assertions.assertEquals(199039203, model.snapshotsToKeep());
- Assertions.assertEquals(20287236, model.hour());
- Assertions.assertEquals(1409341290, model.minute());
- Assertions.assertEquals(6033840789921327792L, model.usedBytes());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DimensionTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DimensionTests.java
deleted file mode 100644
index 4eb4f69ff1e1..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DimensionTests.java
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.Dimension;
-import org.junit.jupiter.api.Assertions;
-
-public final class DimensionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Dimension model =
- BinaryData
- .fromString("{\"name\":\"ifiyipjxsqwpgrj\",\"displayName\":\"norcjxvsnbyxqab\"}")
- .toObject(Dimension.class);
- Assertions.assertEquals("ifiyipjxsqwpgrj", model.name());
- Assertions.assertEquals("norcjxvsnbyxqab", model.displayName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Dimension model = new Dimension().withName("ifiyipjxsqwpgrj").withDisplayName("norcjxvsnbyxqab");
- model = BinaryData.fromObject(model).toObject(Dimension.class);
- Assertions.assertEquals("ifiyipjxsqwpgrj", model.name());
- Assertions.assertEquals("norcjxvsnbyxqab", model.displayName());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityTests.java
deleted file mode 100644
index 73021892e98c..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityTests.java
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.EncryptionIdentity;
-import org.junit.jupiter.api.Assertions;
-
-public final class EncryptionIdentityTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- EncryptionIdentity model =
- BinaryData
- .fromString("{\"principalId\":\"zuvccfwnfnbacfio\",\"userAssignedIdentity\":\"ebxetqgtzxdp\"}")
- .toObject(EncryptionIdentity.class);
- Assertions.assertEquals("ebxetqgtzxdp", model.userAssignedIdentity());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- EncryptionIdentity model = new EncryptionIdentity().withUserAssignedIdentity("ebxetqgtzxdp");
- model = BinaryData.fromObject(model).toObject(EncryptionIdentity.class);
- Assertions.assertEquals("ebxetqgtzxdp", model.userAssignedIdentity());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ExportPolicyRuleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ExportPolicyRuleTests.java
deleted file mode 100644
index af153f2dd3d7..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ExportPolicyRuleTests.java
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.ChownMode;
-import com.azure.resourcemanager.netapp.models.ExportPolicyRule;
-import org.junit.jupiter.api.Assertions;
-
-public final class ExportPolicyRuleTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ExportPolicyRule model =
- BinaryData
- .fromString(
- "{\"ruleIndex\":709039667,\"unixReadOnly\":true,\"unixReadWrite\":true,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":false,\"cifs\":false,\"nfsv3\":true,\"nfsv41\":false,\"allowedClients\":\"gidokgjljyoxgvcl\",\"hasRootAccess\":true,\"chownMode\":\"Restricted\"}")
- .toObject(ExportPolicyRule.class);
- Assertions.assertEquals(709039667, model.ruleIndex());
- Assertions.assertEquals(true, model.unixReadOnly());
- Assertions.assertEquals(true, model.unixReadWrite());
- Assertions.assertEquals(false, model.kerberos5ReadOnly());
- Assertions.assertEquals(false, model.kerberos5ReadWrite());
- Assertions.assertEquals(false, model.kerberos5IReadOnly());
- Assertions.assertEquals(true, model.kerberos5IReadWrite());
- Assertions.assertEquals(true, model.kerberos5PReadOnly());
- Assertions.assertEquals(false, model.kerberos5PReadWrite());
- Assertions.assertEquals(false, model.cifs());
- Assertions.assertEquals(true, model.nfsv3());
- Assertions.assertEquals(false, model.nfsv41());
- Assertions.assertEquals("gidokgjljyoxgvcl", model.allowedClients());
- Assertions.assertEquals(true, model.hasRootAccess());
- Assertions.assertEquals(ChownMode.RESTRICTED, model.chownMode());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ExportPolicyRule model =
- new ExportPolicyRule()
- .withRuleIndex(709039667)
- .withUnixReadOnly(true)
- .withUnixReadWrite(true)
- .withKerberos5ReadOnly(false)
- .withKerberos5ReadWrite(false)
- .withKerberos5IReadOnly(false)
- .withKerberos5IReadWrite(true)
- .withKerberos5PReadOnly(true)
- .withKerberos5PReadWrite(false)
- .withCifs(false)
- .withNfsv3(true)
- .withNfsv41(false)
- .withAllowedClients("gidokgjljyoxgvcl")
- .withHasRootAccess(true)
- .withChownMode(ChownMode.RESTRICTED);
- model = BinaryData.fromObject(model).toObject(ExportPolicyRule.class);
- Assertions.assertEquals(709039667, model.ruleIndex());
- Assertions.assertEquals(true, model.unixReadOnly());
- Assertions.assertEquals(true, model.unixReadWrite());
- Assertions.assertEquals(false, model.kerberos5ReadOnly());
- Assertions.assertEquals(false, model.kerberos5ReadWrite());
- Assertions.assertEquals(false, model.kerberos5IReadOnly());
- Assertions.assertEquals(true, model.kerberos5IReadWrite());
- Assertions.assertEquals(true, model.kerberos5PReadOnly());
- Assertions.assertEquals(false, model.kerberos5PReadWrite());
- Assertions.assertEquals(false, model.cifs());
- Assertions.assertEquals(true, model.nfsv3());
- Assertions.assertEquals(false, model.nfsv41());
- Assertions.assertEquals("gidokgjljyoxgvcl", model.allowedClients());
- Assertions.assertEquals(true, model.hasRootAccess());
- Assertions.assertEquals(ChownMode.RESTRICTED, model.chownMode());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FilePathAvailabilityRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FilePathAvailabilityRequestTests.java
deleted file mode 100644
index 9896f797f146..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FilePathAvailabilityRequestTests.java
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest;
-import org.junit.jupiter.api.Assertions;
-
-public final class FilePathAvailabilityRequestTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- FilePathAvailabilityRequest model =
- BinaryData
- .fromString("{\"name\":\"pku\",\"subnetId\":\"jkrlkhbzhfepg\"}")
- .toObject(FilePathAvailabilityRequest.class);
- Assertions.assertEquals("pku", model.name());
- Assertions.assertEquals("jkrlkhbzhfepg", model.subnetId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- FilePathAvailabilityRequest model =
- new FilePathAvailabilityRequest().withName("pku").withSubnetId("jkrlkhbzhfepg");
- model = BinaryData.fromObject(model).toObject(FilePathAvailabilityRequest.class);
- Assertions.assertEquals("pku", model.name());
- Assertions.assertEquals("jkrlkhbzhfepg", model.subnetId());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/HourlyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/HourlyScheduleTests.java
deleted file mode 100644
index 75004420fe5e..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/HourlyScheduleTests.java
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.HourlySchedule;
-import org.junit.jupiter.api.Assertions;
-
-public final class HourlyScheduleTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- HourlySchedule model =
- BinaryData
- .fromString("{\"snapshotsToKeep\":792180038,\"minute\":1458027183,\"usedBytes\":4936822045800298371}")
- .toObject(HourlySchedule.class);
- Assertions.assertEquals(792180038, model.snapshotsToKeep());
- Assertions.assertEquals(1458027183, model.minute());
- Assertions.assertEquals(4936822045800298371L, model.usedBytes());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- HourlySchedule model =
- new HourlySchedule()
- .withSnapshotsToKeep(792180038)
- .withMinute(1458027183)
- .withUsedBytes(4936822045800298371L);
- model = BinaryData.fromObject(model).toObject(HourlySchedule.class);
- Assertions.assertEquals(792180038, model.snapshotsToKeep());
- Assertions.assertEquals(1458027183, model.minute());
- Assertions.assertEquals(4936822045800298371L, model.usedBytes());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java
deleted file mode 100644
index b5b72d6ee90d..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.LdapSearchScopeOpt;
-import org.junit.jupiter.api.Assertions;
-
-public final class LdapSearchScopeOptTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- LdapSearchScopeOpt model =
- BinaryData
- .fromString(
- "{\"userDN\":\"gpphrcgyn\",\"groupDN\":\"cpecfvmmcoofs\",\"groupMembershipFilter\":\"zevgb\"}")
- .toObject(LdapSearchScopeOpt.class);
- Assertions.assertEquals("gpphrcgyn", model.userDN());
- Assertions.assertEquals("cpecfvmmcoofs", model.groupDN());
- Assertions.assertEquals("zevgb", model.groupMembershipFilter());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- LdapSearchScopeOpt model =
- new LdapSearchScopeOpt()
- .withUserDN("gpphrcgyn")
- .withGroupDN("cpecfvmmcoofs")
- .withGroupMembershipFilter("zevgb");
- model = BinaryData.fromObject(model).toObject(LdapSearchScopeOpt.class);
- Assertions.assertEquals("gpphrcgyn", model.userDN());
- Assertions.assertEquals("cpecfvmmcoofs", model.groupDN());
- Assertions.assertEquals("zevgb", model.groupMembershipFilter());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListReplicationsTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListReplicationsTests.java
deleted file mode 100644
index c48ea4f4f347..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListReplicationsTests.java
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.ReplicationInner;
-import com.azure.resourcemanager.netapp.models.EndpointType;
-import com.azure.resourcemanager.netapp.models.ListReplications;
-import com.azure.resourcemanager.netapp.models.ReplicationSchedule;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ListReplicationsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ListReplications model =
- BinaryData
- .fromString(
- "{\"value\":[{\"endpointType\":\"dst\",\"replicationSchedule\":\"hourly\",\"remoteVolumeResourceId\":\"hahvljuahaq\",\"remoteVolumeRegion\":\"c\"},{\"endpointType\":\"src\",\"replicationSchedule\":\"hourly\",\"remoteVolumeResourceId\":\"alaexqpvfadmwsrc\",\"remoteVolumeRegion\":\"vxpvgomz\"},{\"endpointType\":\"src\",\"replicationSchedule\":\"_10minutely\",\"remoteVolumeResourceId\":\"gwb\",\"remoteVolumeRegion\":\"beldawkzbaliourq\"}]}")
- .toObject(ListReplications.class);
- Assertions.assertEquals(EndpointType.DST, model.value().get(0).endpointType());
- Assertions.assertEquals(ReplicationSchedule.HOURLY, model.value().get(0).replicationSchedule());
- Assertions.assertEquals("hahvljuahaq", model.value().get(0).remoteVolumeResourceId());
- Assertions.assertEquals("c", model.value().get(0).remoteVolumeRegion());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ListReplications model =
- new ListReplications()
- .withValue(
- Arrays
- .asList(
- new ReplicationInner()
- .withEndpointType(EndpointType.DST)
- .withReplicationSchedule(ReplicationSchedule.HOURLY)
- .withRemoteVolumeResourceId("hahvljuahaq")
- .withRemoteVolumeRegion("c"),
- new ReplicationInner()
- .withEndpointType(EndpointType.SRC)
- .withReplicationSchedule(ReplicationSchedule.HOURLY)
- .withRemoteVolumeResourceId("alaexqpvfadmwsrc")
- .withRemoteVolumeRegion("vxpvgomz"),
- new ReplicationInner()
- .withEndpointType(EndpointType.SRC)
- .withReplicationSchedule(ReplicationSchedule.ONE_ZEROMINUTELY)
- .withRemoteVolumeResourceId("gwb")
- .withRemoteVolumeRegion("beldawkzbaliourq")));
- model = BinaryData.fromObject(model).toObject(ListReplications.class);
- Assertions.assertEquals(EndpointType.DST, model.value().get(0).endpointType());
- Assertions.assertEquals(ReplicationSchedule.HOURLY, model.value().get(0).replicationSchedule());
- Assertions.assertEquals("hahvljuahaq", model.value().get(0).remoteVolumeResourceId());
- Assertions.assertEquals("c", model.value().get(0).remoteVolumeRegion());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LogSpecificationTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LogSpecificationTests.java
deleted file mode 100644
index f62330eb95a7..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LogSpecificationTests.java
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.LogSpecification;
-import org.junit.jupiter.api.Assertions;
-
-public final class LogSpecificationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- LogSpecification model =
- BinaryData.fromString("{\"name\":\"ocpcy\",\"displayName\":\"urzafb\"}").toObject(LogSpecification.class);
- Assertions.assertEquals("ocpcy", model.name());
- Assertions.assertEquals("urzafb", model.displayName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- LogSpecification model = new LogSpecification().withName("ocpcy").withDisplayName("urzafb");
- model = BinaryData.fromObject(model).toObject(LogSpecification.class);
- Assertions.assertEquals("ocpcy", model.name());
- Assertions.assertEquals("urzafb", model.displayName());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ManagedServiceIdentityTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ManagedServiceIdentityTests.java
deleted file mode 100644
index e87bbaf6acdb..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ManagedServiceIdentityTests.java
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.netapp.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.netapp.models.UserAssignedIdentity;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class ManagedServiceIdentityTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ManagedServiceIdentity model =
- BinaryData
- .fromString(
- "{\"principalId\":\"b08e5065-c2d7-4c58-96f9-5287dc9ea765\",\"tenantId\":\"20af4492-d6c4-4406-afd3-7371b6caa8eb\",\"type\":\"None\",\"userAssignedIdentities\":{\"jfeallnwsub\":{\"principalId\":\"df6efb0e-0d53-47c7-9200-e52ecda72f1e\",\"clientId\":\"eb37883f-1094-4bdc-814a-af9d3fc93e04\"},\"jampmngnzscxaqw\":{\"principalId\":\"2730aa5b-9a50-4480-a8c8-9e61859de826\",\"clientId\":\"07aada81-b718-46a3-8975-ef02d6b68da5\"},\"hcbonqvpkvlr\":{\"principalId\":\"b15cab05-1bc0-49af-8bcf-e6cc585702c3\",\"clientId\":\"fbf982d5-e2f3-446b-8b46-3e9f66888c40\"},\"ea\":{\"principalId\":\"6f84b040-5de6-4797-ad21-1f16f4ac11fb\",\"clientId\":\"8f6139d5-6ecd-4ad6-aa8c-a6baf394265f\"}}}")
- .toObject(ManagedServiceIdentity.class);
- Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ManagedServiceIdentity model =
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.NONE)
- .withUserAssignedIdentities(
- mapOf(
- "jfeallnwsub",
- new UserAssignedIdentity(),
- "jampmngnzscxaqw",
- new UserAssignedIdentity(),
- "hcbonqvpkvlr",
- new UserAssignedIdentity(),
- "ea",
- new UserAssignedIdentity()));
- model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class);
- Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.type());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MetricSpecificationTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MetricSpecificationTests.java
deleted file mode 100644
index b3ae28493e3c..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MetricSpecificationTests.java
+++ /dev/null
@@ -1,91 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.Dimension;
-import com.azure.resourcemanager.netapp.models.MetricAggregationType;
-import com.azure.resourcemanager.netapp.models.MetricSpecification;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class MetricSpecificationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- MetricSpecification model =
- BinaryData
- .fromString(
- "{\"name\":\"awrlyx\",\"displayName\":\"kcprbnw\",\"displayDescription\":\"gjvtbv\",\"unit\":\"sszdnru\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"uqfprwzw\",\"nguitnwuizgazxu\"],\"internalMetricName\":\"zuckyfi\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"dfvzwdzuhty\",\"sourceMdmNamespace\":\"isdkfthwxmnteiw\",\"dimensions\":[{\"name\":\"km\",\"displayName\":\"c\"},{\"name\":\"xdcu\",\"displayName\":\"fsrpymzidnse\"},{\"name\":\"xtbzsgfyccsne\",\"displayName\":\"dwzjeiach\"},{\"name\":\"osfln\",\"displayName\":\"sfqpteehz\"}],\"aggregationType\":\"ypyqrimzinp\",\"fillGapWithZero\":false,\"category\":\"dkirsoodqxhcr\",\"resourceIdDimensionNameOverride\":\"ohjtckw\",\"isInternal\":true}")
- .toObject(MetricSpecification.class);
- Assertions.assertEquals("awrlyx", model.name());
- Assertions.assertEquals("kcprbnw", model.displayName());
- Assertions.assertEquals("gjvtbv", model.displayDescription());
- Assertions.assertEquals("sszdnru", model.unit());
- Assertions.assertEquals(MetricAggregationType.AVERAGE, model.supportedAggregationTypes().get(0));
- Assertions.assertEquals("uqfprwzw", model.supportedTimeGrainTypes().get(0));
- Assertions.assertEquals("zuckyfi", model.internalMetricName());
- Assertions.assertEquals(false, model.enableRegionalMdmAccount());
- Assertions.assertEquals("dfvzwdzuhty", model.sourceMdmAccount());
- Assertions.assertEquals("isdkfthwxmnteiw", model.sourceMdmNamespace());
- Assertions.assertEquals("km", model.dimensions().get(0).name());
- Assertions.assertEquals("c", model.dimensions().get(0).displayName());
- Assertions.assertEquals("ypyqrimzinp", model.aggregationType());
- Assertions.assertEquals(false, model.fillGapWithZero());
- Assertions.assertEquals("dkirsoodqxhcr", model.category());
- Assertions.assertEquals("ohjtckw", model.resourceIdDimensionNameOverride());
- Assertions.assertEquals(true, model.isInternal());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- MetricSpecification model =
- new MetricSpecification()
- .withName("awrlyx")
- .withDisplayName("kcprbnw")
- .withDisplayDescription("gjvtbv")
- .withUnit("sszdnru")
- .withSupportedAggregationTypes(
- Arrays
- .asList(
- MetricAggregationType.AVERAGE,
- MetricAggregationType.AVERAGE,
- MetricAggregationType.AVERAGE))
- .withSupportedTimeGrainTypes(Arrays.asList("uqfprwzw", "nguitnwuizgazxu"))
- .withInternalMetricName("zuckyfi")
- .withEnableRegionalMdmAccount(false)
- .withSourceMdmAccount("dfvzwdzuhty")
- .withSourceMdmNamespace("isdkfthwxmnteiw")
- .withDimensions(
- Arrays
- .asList(
- new Dimension().withName("km").withDisplayName("c"),
- new Dimension().withName("xdcu").withDisplayName("fsrpymzidnse"),
- new Dimension().withName("xtbzsgfyccsne").withDisplayName("dwzjeiach"),
- new Dimension().withName("osfln").withDisplayName("sfqpteehz")))
- .withAggregationType("ypyqrimzinp")
- .withFillGapWithZero(false)
- .withCategory("dkirsoodqxhcr")
- .withResourceIdDimensionNameOverride("ohjtckw")
- .withIsInternal(true);
- model = BinaryData.fromObject(model).toObject(MetricSpecification.class);
- Assertions.assertEquals("awrlyx", model.name());
- Assertions.assertEquals("kcprbnw", model.displayName());
- Assertions.assertEquals("gjvtbv", model.displayDescription());
- Assertions.assertEquals("sszdnru", model.unit());
- Assertions.assertEquals(MetricAggregationType.AVERAGE, model.supportedAggregationTypes().get(0));
- Assertions.assertEquals("uqfprwzw", model.supportedTimeGrainTypes().get(0));
- Assertions.assertEquals("zuckyfi", model.internalMetricName());
- Assertions.assertEquals(false, model.enableRegionalMdmAccount());
- Assertions.assertEquals("dfvzwdzuhty", model.sourceMdmAccount());
- Assertions.assertEquals("isdkfthwxmnteiw", model.sourceMdmNamespace());
- Assertions.assertEquals("km", model.dimensions().get(0).name());
- Assertions.assertEquals("c", model.dimensions().get(0).displayName());
- Assertions.assertEquals("ypyqrimzinp", model.aggregationType());
- Assertions.assertEquals(false, model.fillGapWithZero());
- Assertions.assertEquals("dkirsoodqxhcr", model.category());
- Assertions.assertEquals("ohjtckw", model.resourceIdDimensionNameOverride());
- Assertions.assertEquals(true, model.isInternal());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MonthlyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MonthlyScheduleTests.java
deleted file mode 100644
index fcbe77cd1f99..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MonthlyScheduleTests.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.MonthlySchedule;
-import org.junit.jupiter.api.Assertions;
-
-public final class MonthlyScheduleTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- MonthlySchedule model =
- BinaryData
- .fromString(
- "{\"snapshotsToKeep\":1628886770,\"daysOfMonth\":\"lcxog\",\"hour\":97204853,\"minute\":244687825,\"usedBytes\":93220061334436953}")
- .toObject(MonthlySchedule.class);
- Assertions.assertEquals(1628886770, model.snapshotsToKeep());
- Assertions.assertEquals("lcxog", model.daysOfMonth());
- Assertions.assertEquals(97204853, model.hour());
- Assertions.assertEquals(244687825, model.minute());
- Assertions.assertEquals(93220061334436953L, model.usedBytes());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- MonthlySchedule model =
- new MonthlySchedule()
- .withSnapshotsToKeep(1628886770)
- .withDaysOfMonth("lcxog")
- .withHour(97204853)
- .withMinute(244687825)
- .withUsedBytes(93220061334436953L);
- model = BinaryData.fromObject(model).toObject(MonthlySchedule.class);
- Assertions.assertEquals(1628886770, model.snapshotsToKeep());
- Assertions.assertEquals("lcxog", model.daysOfMonth());
- Assertions.assertEquals(97204853, model.hour());
- Assertions.assertEquals(244687825, model.minute());
- Assertions.assertEquals(93220061334436953L, model.usedBytes());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MountTargetPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MountTargetPropertiesTests.java
deleted file mode 100644
index c27d47462733..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MountTargetPropertiesTests.java
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.MountTargetProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class MountTargetPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- MountTargetProperties model =
- BinaryData
- .fromString(
- "{\"mountTargetId\":\"ghkjeszzhbi\",\"fileSystemId\":\"htxfvgxbfsmxnehm\",\"ipAddress\":\"ec\",\"smbServerFqdn\":\"odebfqkkrbmpu\"}")
- .toObject(MountTargetProperties.class);
- Assertions.assertEquals("htxfvgxbfsmxnehm", model.fileSystemId());
- Assertions.assertEquals("odebfqkkrbmpu", model.smbServerFqdn());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- MountTargetProperties model =
- new MountTargetProperties().withFileSystemId("htxfvgxbfsmxnehm").withSmbServerFqdn("odebfqkkrbmpu");
- model = BinaryData.fromObject(model).toObject(MountTargetProperties.class);
- Assertions.assertEquals("htxfvgxbfsmxnehm", model.fileSystemId());
- Assertions.assertEquals("odebfqkkrbmpu", model.smbServerFqdn());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppAccountListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppAccountListTests.java
deleted file mode 100644
index d523b02d8f3c..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppAccountListTests.java
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner;
-import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.netapp.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.netapp.models.NetAppAccountList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class NetAppAccountListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- NetAppAccountList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"etag\":\"j\",\"properties\":{\"provisioningState\":\"pmouexhdz\",\"activeDirectories\":[],\"disableShowmount\":true},\"identity\":{\"principalId\":\"0b084344-b24d-43bc-b06e-4d274fc46583\",\"tenantId\":\"c93219c2-0494-49e9-a6a7-c23ab0a5397e\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"location\":\"zvddntwndeicbtwn\",\"tags\":{\"cffcyddglmj\":\"oqvuhr\",\"wpyeicxmqciwqvh\":\"hjq\"},\"id\":\"hix\",\"name\":\"igdtopbob\",\"type\":\"og\"}],\"nextLink\":\"e\"}")
- .toObject(NetAppAccountList.class);
- Assertions.assertEquals("zvddntwndeicbtwn", model.value().get(0).location());
- Assertions.assertEquals("oqvuhr", model.value().get(0).tags().get("cffcyddglmj"));
- Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.value().get(0).identity().type());
- Assertions.assertEquals("e", model.nextLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- NetAppAccountList model =
- new NetAppAccountList()
- .withValue(
- Arrays
- .asList(
- new NetAppAccountInner()
- .withLocation("zvddntwndeicbtwn")
- .withTags(mapOf("cffcyddglmj", "oqvuhr", "wpyeicxmqciwqvh", "hjq"))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .withActiveDirectories(Arrays.asList())))
- .withNextLink("e");
- model = BinaryData.fromObject(model).toObject(NetAppAccountList.class);
- Assertions.assertEquals("zvddntwndeicbtwn", model.value().get(0).location());
- Assertions.assertEquals("oqvuhr", model.value().get(0).tags().get("cffcyddglmj"));
- Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.value().get(0).identity().type());
- Assertions.assertEquals("e", model.nextLink());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java
deleted file mode 100644
index 6e7eefc80d51..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class NetAppResourceQuotaLimitsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"current\":584179057,\"default\":2032190732},\"id\":\"r\",\"name\":\"jlpijnkrx\",\"type\":\"rddh\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- SubscriptionQuotaItem response =
- manager
- .netAppResourceQuotaLimits()
- .getWithResponse("irgne", "ttwqmsni", com.azure.core.util.Context.NONE)
- .getValue();
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java
deleted file mode 100644
index 329f57d950a3..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class NetAppResourceQuotaLimitsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"current\":647011276,\"default\":342419071},\"id\":\"luudfdlwggytsb\",\"name\":\"tov\",\"type\":\"tgseinqfiufxqkn\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.netAppResourceQuotaLimits().list("jchrdgoihxumw", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java
deleted file mode 100644
index 9ee2a4495a4b..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.CheckAvailabilityResponse;
-import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest;
-import com.azure.resourcemanager.netapp.models.InAvailabilityReasonType;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests {
- @Test
- public void testCheckFilePathAvailabilityWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{\"isAvailable\":true,\"reason\":\"Invalid\",\"message\":\"ojujbyp\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CheckAvailabilityResponse response =
- manager
- .netAppResources()
- .checkFilePathAvailabilityWithResponse(
- "yeozphvwauyqncy",
- new FilePathAvailabilityRequest().withName("upkvipmdsc").withSubnetId("xqupevzhf"),
- com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(true, response.isAvailable());
- Assertions.assertEquals(InAvailabilityReasonType.INVALID, response.reason());
- Assertions.assertEquals("ojujbyp", response.message());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java
deleted file mode 100644
index 63adec831b8b..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.CheckAvailabilityResponse;
-import com.azure.resourcemanager.netapp.models.CheckNameResourceTypes;
-import com.azure.resourcemanager.netapp.models.InAvailabilityReasonType;
-import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class NetAppResourcesCheckNameAvailabilityWithResponseMockTests {
- @Test
- public void testCheckNameAvailabilityWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{\"isAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"pjpqqmtedltmmji\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CheckAvailabilityResponse response =
- manager
- .netAppResources()
- .checkNameAvailabilityWithResponse(
- "bre",
- new ResourceNameAvailabilityRequest()
- .withName("qaaysjkixqt")
- .withType(
- CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS)
- .withResourceGroup("ttezlw"),
- com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(true, response.isAvailable());
- Assertions.assertEquals(InAvailabilityReasonType.ALREADY_EXISTS, response.reason());
- Assertions.assertEquals("pjpqqmtedltmmji", response.message());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java
deleted file mode 100644
index 5aae805cdaa8..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java
+++ /dev/null
@@ -1,82 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.CheckAvailabilityResponse;
-import com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes;
-import com.azure.resourcemanager.netapp.models.InAvailabilityReasonType;
-import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests {
- @Test
- public void testCheckQuotaAvailabilityWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{\"isAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"fpncurdo\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CheckAvailabilityResponse response =
- manager
- .netAppResources()
- .checkQuotaAvailabilityWithResponse(
- "lmcuvhixb",
- new QuotaAvailabilityRequest()
- .withName("xyfwnylrcool")
- .withType(
- CheckQuotaNameResourceTypes
- .MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS)
- .withResourceGroup("tpkiwkkbnujry"),
- com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(true, response.isAvailable());
- Assertions.assertEquals(InAvailabilityReasonType.ALREADY_EXISTS, response.reason());
- Assertions.assertEquals("fpncurdo", response.message());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java
deleted file mode 100644
index 7c77b4a0061a..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.RegionInfo;
-import com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class NetAppResourcesQueryRegionInfoWithResponseMockTests {
- @Test
- public void testQueryRegionInfoWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"storageToNetworkProximity\":\"T2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"qknfd\",\"isAvailable\":false}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- RegionInfo response =
- manager
- .netAppResources()
- .queryRegionInfoWithResponse("wiithtywub", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(RegionStorageToNetworkProximity.T2, response.storageToNetworkProximity());
- Assertions.assertEquals("qknfd", response.availabilityZoneMappings().get(0).availabilityZone());
- Assertions.assertEquals(false, response.availabilityZoneMappings().get(0).isAvailable());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationDisplayTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationDisplayTests.java
deleted file mode 100644
index 3e003f35e555..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationDisplayTests.java
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.OperationDisplay;
-import org.junit.jupiter.api.Assertions;
-
-public final class OperationDisplayTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationDisplay model =
- BinaryData
- .fromString(
- "{\"provider\":\"mrqobmtukknr\",\"resource\":\"tihfx\",\"operation\":\"jbpzvgnwzsymg\",\"description\":\"uf\"}")
- .toObject(OperationDisplay.class);
- Assertions.assertEquals("mrqobmtukknr", model.provider());
- Assertions.assertEquals("tihfx", model.resource());
- Assertions.assertEquals("jbpzvgnwzsymg", model.operation());
- Assertions.assertEquals("uf", model.description());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationDisplay model =
- new OperationDisplay()
- .withProvider("mrqobmtukknr")
- .withResource("tihfx")
- .withOperation("jbpzvgnwzsymg")
- .withDescription("uf");
- model = BinaryData.fromObject(model).toObject(OperationDisplay.class);
- Assertions.assertEquals("mrqobmtukknr", model.provider());
- Assertions.assertEquals("tihfx", model.resource());
- Assertions.assertEquals("jbpzvgnwzsymg", model.operation());
- Assertions.assertEquals("uf", model.description());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationInnerTests.java
deleted file mode 100644
index 0fe90f045fe0..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationInnerTests.java
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.OperationInner;
-import com.azure.resourcemanager.netapp.models.OperationDisplay;
-import com.azure.resourcemanager.netapp.models.ServiceSpecification;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class OperationInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationInner model =
- BinaryData
- .fromString(
- "{\"name\":\"sarhmofc\",\"display\":{\"provider\":\"my\",\"resource\":\"kdtmlxhekuk\",\"operation\":\"txukcdmp\",\"description\":\"cryuan\"},\"origin\":\"uxzdxtay\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[],\"logSpecifications\":[]}}}")
- .toObject(OperationInner.class);
- Assertions.assertEquals("sarhmofc", model.name());
- Assertions.assertEquals("my", model.display().provider());
- Assertions.assertEquals("kdtmlxhekuk", model.display().resource());
- Assertions.assertEquals("txukcdmp", model.display().operation());
- Assertions.assertEquals("cryuan", model.display().description());
- Assertions.assertEquals("uxzdxtay", model.origin());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationInner model =
- new OperationInner()
- .withName("sarhmofc")
- .withDisplay(
- new OperationDisplay()
- .withProvider("my")
- .withResource("kdtmlxhekuk")
- .withOperation("txukcdmp")
- .withDescription("cryuan"))
- .withOrigin("uxzdxtay")
- .withServiceSpecification(
- new ServiceSpecification()
- .withMetricSpecifications(Arrays.asList())
- .withLogSpecifications(Arrays.asList()));
- model = BinaryData.fromObject(model).toObject(OperationInner.class);
- Assertions.assertEquals("sarhmofc", model.name());
- Assertions.assertEquals("my", model.display().provider());
- Assertions.assertEquals("kdtmlxhekuk", model.display().resource());
- Assertions.assertEquals("txukcdmp", model.display().operation());
- Assertions.assertEquals("cryuan", model.display().description());
- Assertions.assertEquals("uxzdxtay", model.origin());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationListResultTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationListResultTests.java
deleted file mode 100644
index c201e87f47cc..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationListResultTests.java
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.OperationInner;
-import com.azure.resourcemanager.netapp.models.OperationDisplay;
-import com.azure.resourcemanager.netapp.models.OperationListResult;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class OperationListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationListResult model =
- BinaryData
- .fromString(
- "{\"value\":[{\"name\":\"quvgjxpybczme\",\"display\":{\"provider\":\"zopbsphrupidgs\",\"resource\":\"bejhphoycmsxa\",\"operation\":\"hdxbmtqio\",\"description\":\"zehtbmu\"},\"origin\":\"ownoizhw\",\"properties\":{}},{\"name\":\"bqsoqijg\",\"display\":{\"provider\":\"bpazlobcufpdzn\",\"resource\":\"t\",\"operation\":\"qjnqglhqgnufoooj\",\"description\":\"ifsqesaagdfmg\"},\"origin\":\"lhjxr\",\"properties\":{}},{\"name\":\"mrvktsizntoc\",\"display\":{\"provider\":\"ouajpsqucmpoyf\",\"resource\":\"fogknygjofjdde\",\"operation\":\"rd\",\"description\":\"pewnw\"},\"origin\":\"itjz\",\"properties\":{}}]}")
- .toObject(OperationListResult.class);
- Assertions.assertEquals("quvgjxpybczme", model.value().get(0).name());
- Assertions.assertEquals("zopbsphrupidgs", model.value().get(0).display().provider());
- Assertions.assertEquals("bejhphoycmsxa", model.value().get(0).display().resource());
- Assertions.assertEquals("hdxbmtqio", model.value().get(0).display().operation());
- Assertions.assertEquals("zehtbmu", model.value().get(0).display().description());
- Assertions.assertEquals("ownoizhw", model.value().get(0).origin());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationListResult model =
- new OperationListResult()
- .withValue(
- Arrays
- .asList(
- new OperationInner()
- .withName("quvgjxpybczme")
- .withDisplay(
- new OperationDisplay()
- .withProvider("zopbsphrupidgs")
- .withResource("bejhphoycmsxa")
- .withOperation("hdxbmtqio")
- .withDescription("zehtbmu"))
- .withOrigin("ownoizhw"),
- new OperationInner()
- .withName("bqsoqijg")
- .withDisplay(
- new OperationDisplay()
- .withProvider("bpazlobcufpdzn")
- .withResource("t")
- .withOperation("qjnqglhqgnufoooj")
- .withDescription("ifsqesaagdfmg"))
- .withOrigin("lhjxr"),
- new OperationInner()
- .withName("mrvktsizntoc")
- .withDisplay(
- new OperationDisplay()
- .withProvider("ouajpsqucmpoyf")
- .withResource("fogknygjofjdde")
- .withOperation("rd")
- .withDescription("pewnw"))
- .withOrigin("itjz")));
- model = BinaryData.fromObject(model).toObject(OperationListResult.class);
- Assertions.assertEquals("quvgjxpybczme", model.value().get(0).name());
- Assertions.assertEquals("zopbsphrupidgs", model.value().get(0).display().provider());
- Assertions.assertEquals("bejhphoycmsxa", model.value().get(0).display().resource());
- Assertions.assertEquals("hdxbmtqio", model.value().get(0).display().operation());
- Assertions.assertEquals("zehtbmu", model.value().get(0).display().description());
- Assertions.assertEquals("ownoizhw", model.value().get(0).origin());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationPropertiesTests.java
deleted file mode 100644
index 600bf4cbcd9b..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationPropertiesTests.java
+++ /dev/null
@@ -1,127 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.OperationProperties;
-import com.azure.resourcemanager.netapp.models.LogSpecification;
-import com.azure.resourcemanager.netapp.models.MetricSpecification;
-import com.azure.resourcemanager.netapp.models.ServiceSpecification;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class OperationPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationProperties model =
- BinaryData
- .fromString(
- "{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"hdbihan\",\"displayName\":\"hfcbjysa\",\"displayDescription\":\"th\",\"unit\":\"hab\",\"supportedAggregationTypes\":[],\"supportedTimeGrainTypes\":[],\"internalMetricName\":\"kxwczbyscnpqxuhi\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"iwbybrkxvdumjg\",\"sourceMdmNamespace\":\"fwvuk\",\"dimensions\":[],\"aggregationType\":\"udccsnhsjc\",\"fillGapWithZero\":false,\"category\":\"hkryhtn\",\"resourceIdDimensionNameOverride\":\"czwlokjyem\",\"isInternal\":false},{\"name\":\"ipjoxzjnchgejs\",\"displayName\":\"dmailzydehojw\",\"displayDescription\":\"huxinpmqnj\",\"unit\":\"wixjsprozvcp\",\"supportedAggregationTypes\":[],\"supportedTimeGrainTypes\":[],\"internalMetricName\":\"jvwmfda\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"dvpjhulsuuvmk\",\"sourceMdmNamespace\":\"zkrwfn\",\"dimensions\":[],\"aggregationType\":\"djpslw\",\"fillGapWithZero\":true,\"category\":\"vwryoqpso\",\"resourceIdDimensionNameOverride\":\"ctazakljlahbcryf\",\"isInternal\":false}],\"logSpecifications\":[{\"name\":\"ygexpaojakhmsb\",\"displayName\":\"hcrzevd\"},{\"name\":\"lxaolthqtrgqjbp\",\"displayName\":\"fsinzgvfcjrwzoxx\"}]}}")
- .toObject(OperationProperties.class);
- Assertions.assertEquals("hdbihan", model.serviceSpecification().metricSpecifications().get(0).name());
- Assertions.assertEquals("hfcbjysa", model.serviceSpecification().metricSpecifications().get(0).displayName());
- Assertions.assertEquals("th", model.serviceSpecification().metricSpecifications().get(0).displayDescription());
- Assertions.assertEquals("hab", model.serviceSpecification().metricSpecifications().get(0).unit());
- Assertions
- .assertEquals(
- "kxwczbyscnpqxuhi", model.serviceSpecification().metricSpecifications().get(0).internalMetricName());
- Assertions
- .assertEquals(true, model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount());
- Assertions
- .assertEquals(
- "iwbybrkxvdumjg", model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount());
- Assertions
- .assertEquals("fwvuk", model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace());
- Assertions
- .assertEquals("udccsnhsjc", model.serviceSpecification().metricSpecifications().get(0).aggregationType());
- Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).fillGapWithZero());
- Assertions.assertEquals("hkryhtn", model.serviceSpecification().metricSpecifications().get(0).category());
- Assertions
- .assertEquals(
- "czwlokjyem",
- model.serviceSpecification().metricSpecifications().get(0).resourceIdDimensionNameOverride());
- Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).isInternal());
- Assertions.assertEquals("ygexpaojakhmsb", model.serviceSpecification().logSpecifications().get(0).name());
- Assertions.assertEquals("hcrzevd", model.serviceSpecification().logSpecifications().get(0).displayName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationProperties model =
- new OperationProperties()
- .withServiceSpecification(
- new ServiceSpecification()
- .withMetricSpecifications(
- Arrays
- .asList(
- new MetricSpecification()
- .withName("hdbihan")
- .withDisplayName("hfcbjysa")
- .withDisplayDescription("th")
- .withUnit("hab")
- .withSupportedAggregationTypes(Arrays.asList())
- .withSupportedTimeGrainTypes(Arrays.asList())
- .withInternalMetricName("kxwczbyscnpqxuhi")
- .withEnableRegionalMdmAccount(true)
- .withSourceMdmAccount("iwbybrkxvdumjg")
- .withSourceMdmNamespace("fwvuk")
- .withDimensions(Arrays.asList())
- .withAggregationType("udccsnhsjc")
- .withFillGapWithZero(false)
- .withCategory("hkryhtn")
- .withResourceIdDimensionNameOverride("czwlokjyem")
- .withIsInternal(false),
- new MetricSpecification()
- .withName("ipjoxzjnchgejs")
- .withDisplayName("dmailzydehojw")
- .withDisplayDescription("huxinpmqnj")
- .withUnit("wixjsprozvcp")
- .withSupportedAggregationTypes(Arrays.asList())
- .withSupportedTimeGrainTypes(Arrays.asList())
- .withInternalMetricName("jvwmfda")
- .withEnableRegionalMdmAccount(false)
- .withSourceMdmAccount("dvpjhulsuuvmk")
- .withSourceMdmNamespace("zkrwfn")
- .withDimensions(Arrays.asList())
- .withAggregationType("djpslw")
- .withFillGapWithZero(true)
- .withCategory("vwryoqpso")
- .withResourceIdDimensionNameOverride("ctazakljlahbcryf")
- .withIsInternal(false)))
- .withLogSpecifications(
- Arrays
- .asList(
- new LogSpecification().withName("ygexpaojakhmsb").withDisplayName("hcrzevd"),
- new LogSpecification()
- .withName("lxaolthqtrgqjbp")
- .withDisplayName("fsinzgvfcjrwzoxx"))));
- model = BinaryData.fromObject(model).toObject(OperationProperties.class);
- Assertions.assertEquals("hdbihan", model.serviceSpecification().metricSpecifications().get(0).name());
- Assertions.assertEquals("hfcbjysa", model.serviceSpecification().metricSpecifications().get(0).displayName());
- Assertions.assertEquals("th", model.serviceSpecification().metricSpecifications().get(0).displayDescription());
- Assertions.assertEquals("hab", model.serviceSpecification().metricSpecifications().get(0).unit());
- Assertions
- .assertEquals(
- "kxwczbyscnpqxuhi", model.serviceSpecification().metricSpecifications().get(0).internalMetricName());
- Assertions
- .assertEquals(true, model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount());
- Assertions
- .assertEquals(
- "iwbybrkxvdumjg", model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount());
- Assertions
- .assertEquals("fwvuk", model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace());
- Assertions
- .assertEquals("udccsnhsjc", model.serviceSpecification().metricSpecifications().get(0).aggregationType());
- Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).fillGapWithZero());
- Assertions.assertEquals("hkryhtn", model.serviceSpecification().metricSpecifications().get(0).category());
- Assertions
- .assertEquals(
- "czwlokjyem",
- model.serviceSpecification().metricSpecifications().get(0).resourceIdDimensionNameOverride());
- Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).isInternal());
- Assertions.assertEquals("ygexpaojakhmsb", model.serviceSpecification().logSpecifications().get(0).name());
- Assertions.assertEquals("hcrzevd", model.serviceSpecification().logSpecifications().get(0).displayName());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationsListMockTests.java
deleted file mode 100644
index 741b293d865d..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationsListMockTests.java
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.Operation;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class OperationsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"name\":\"plcrpwjxeznoig\",\"display\":{\"provider\":\"jwmwkpnbs\",\"resource\":\"ejjoqkagfhsxtta\",\"operation\":\"zxnfaaz\",\"description\":\"dtnkdmkq\"},\"origin\":\"lwuenvrkp\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[],\"logSpecifications\":[]}}}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("plcrpwjxeznoig", response.iterator().next().name());
- Assertions.assertEquals("jwmwkpnbs", response.iterator().next().display().provider());
- Assertions.assertEquals("ejjoqkagfhsxtta", response.iterator().next().display().resource());
- Assertions.assertEquals("zxnfaaz", response.iterator().next().display().operation());
- Assertions.assertEquals("dtnkdmkq", response.iterator().next().display().description());
- Assertions.assertEquals("lwuenvrkp", response.iterator().next().origin());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolChangeRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolChangeRequestTests.java
deleted file mode 100644
index a2980ab6338f..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolChangeRequestTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.PoolChangeRequest;
-import org.junit.jupiter.api.Assertions;
-
-public final class PoolChangeRequestTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PoolChangeRequest model =
- BinaryData.fromString("{\"newPoolResourceId\":\"bvmeuecivy\"}").toObject(PoolChangeRequest.class);
- Assertions.assertEquals("bvmeuecivy", model.newPoolResourceId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PoolChangeRequest model = new PoolChangeRequest().withNewPoolResourceId("bvmeuecivy");
- model = BinaryData.fromObject(model).toObject(PoolChangeRequest.class);
- Assertions.assertEquals("bvmeuecivy", model.newPoolResourceId());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java
deleted file mode 100644
index 560469668c51..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.PoolPatchProperties;
-import com.azure.resourcemanager.netapp.models.QosType;
-import org.junit.jupiter.api.Assertions;
-
-public final class PoolPatchPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PoolPatchProperties model =
- BinaryData
- .fromString("{\"size\":8915857091335509651,\"qosType\":\"Manual\",\"coolAccess\":true}")
- .toObject(PoolPatchProperties.class);
- Assertions.assertEquals(8915857091335509651L, model.size());
- Assertions.assertEquals(QosType.MANUAL, model.qosType());
- Assertions.assertEquals(true, model.coolAccess());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PoolPatchProperties model =
- new PoolPatchProperties().withSize(8915857091335509651L).withQosType(QosType.MANUAL).withCoolAccess(true);
- model = BinaryData.fromObject(model).toObject(PoolPatchProperties.class);
- Assertions.assertEquals(8915857091335509651L, model.size());
- Assertions.assertEquals(QosType.MANUAL, model.qosType());
- Assertions.assertEquals(true, model.coolAccess());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java
deleted file mode 100644
index 6c8465cc6eb5..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.PoolProperties;
-import com.azure.resourcemanager.netapp.models.EncryptionType;
-import com.azure.resourcemanager.netapp.models.QosType;
-import com.azure.resourcemanager.netapp.models.ServiceLevel;
-import org.junit.jupiter.api.Assertions;
-
-public final class PoolPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PoolProperties model =
- BinaryData
- .fromString(
- "{\"poolId\":\"ez\",\"size\":312330781949213255,\"serviceLevel\":\"StandardZRS\",\"provisioningState\":\"mzsb\",\"totalThroughputMibps\":69.09377,\"utilizedThroughputMibps\":19.846666,\"qosType\":\"Auto\",\"coolAccess\":true,\"encryptionType\":\"Double\"}")
- .toObject(PoolProperties.class);
- Assertions.assertEquals(312330781949213255L, model.size());
- Assertions.assertEquals(ServiceLevel.STANDARD_ZRS, model.serviceLevel());
- Assertions.assertEquals(QosType.AUTO, model.qosType());
- Assertions.assertEquals(true, model.coolAccess());
- Assertions.assertEquals(EncryptionType.DOUBLE, model.encryptionType());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PoolProperties model =
- new PoolProperties()
- .withSize(312330781949213255L)
- .withServiceLevel(ServiceLevel.STANDARD_ZRS)
- .withQosType(QosType.AUTO)
- .withCoolAccess(true)
- .withEncryptionType(EncryptionType.DOUBLE);
- model = BinaryData.fromObject(model).toObject(PoolProperties.class);
- Assertions.assertEquals(312330781949213255L, model.size());
- Assertions.assertEquals(ServiceLevel.STANDARD_ZRS, model.serviceLevel());
- Assertions.assertEquals(QosType.AUTO, model.qosType());
- Assertions.assertEquals(true, model.coolAccess());
- Assertions.assertEquals(EncryptionType.DOUBLE, model.encryptionType());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateMockTests.java
deleted file mode 100644
index f27289082f42..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateMockTests.java
+++ /dev/null
@@ -1,107 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.CapacityPool;
-import com.azure.resourcemanager.netapp.models.EncryptionType;
-import com.azure.resourcemanager.netapp.models.QosType;
-import com.azure.resourcemanager.netapp.models.ServiceLevel;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class PoolsCreateOrUpdateMockTests {
- @Test
- public void testCreateOrUpdate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"etag\":\"coezbrhubskh\",\"properties\":{\"poolId\":\"ygo\",\"size\":3757334132859952072,\"serviceLevel\":\"Premium\",\"provisioningState\":\"Succeeded\",\"totalThroughputMibps\":10.981679,\"utilizedThroughputMibps\":60.957645,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Single\"},\"location\":\"vyvnqqyb\",\"tags\":{\"cbhernntiewdj\":\"euayjkqabqgzsles\"},\"id\":\"vbquwr\",\"name\":\"ehwagoh\",\"type\":\"uffkmrqemvvh\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CapacityPool response =
- manager
- .pools()
- .define("ejwcwwqiok")
- .withRegion("dbsdshm")
- .withExistingNetAppAccount("jltduceam", "mczuo")
- .withSize(2032076499039278230L)
- .withServiceLevel(ServiceLevel.ULTRA)
- .withTags(
- mapOf(
- "ltfnhtbaxkgx",
- "aehvbbxuri",
- "yklyhpluodpvruud",
- "wrck",
- "xeclzedqbcvhzlhp",
- "gzibthostgktstv"))
- .withQosType(QosType.MANUAL)
- .withCoolAccess(true)
- .withEncryptionType(EncryptionType.SINGLE)
- .create();
-
- Assertions.assertEquals("vyvnqqyb", response.location());
- Assertions.assertEquals("euayjkqabqgzsles", response.tags().get("cbhernntiewdj"));
- Assertions.assertEquals(3757334132859952072L, response.size());
- Assertions.assertEquals(ServiceLevel.PREMIUM, response.serviceLevel());
- Assertions.assertEquals(QosType.MANUAL, response.qosType());
- Assertions.assertEquals(false, response.coolAccess());
- Assertions.assertEquals(EncryptionType.SINGLE, response.encryptionType());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java
deleted file mode 100644
index 9ed6be3f0d63..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.CapacityPool;
-import com.azure.resourcemanager.netapp.models.EncryptionType;
-import com.azure.resourcemanager.netapp.models.QosType;
-import com.azure.resourcemanager.netapp.models.ServiceLevel;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class PoolsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"etag\":\"pnfqntcyp\",\"properties\":{\"poolId\":\"jv\",\"size\":1949293716771945472,\"serviceLevel\":\"Standard\",\"provisioningState\":\"kslircizjxvydfc\",\"totalThroughputMibps\":28.844578,\"utilizedThroughputMibps\":62.392147,\"qosType\":\"Auto\",\"coolAccess\":true,\"encryptionType\":\"Double\"},\"location\":\"t\",\"tags\":{\"ztsfmznbaeqp\":\"twnawjslbiwkojgc\",\"qgaifmviklbydv\":\"chqnrnrpxehuwry\",\"volvtn\":\"hbejdznxcvdsrhnj\"},\"id\":\"v\",\"name\":\"fzg\",\"type\":\"mjdftu\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CapacityPool response =
- manager
- .pools()
- .getWithResponse("cesutrgjupauut", "woqhihe", "qg", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("t", response.location());
- Assertions.assertEquals("twnawjslbiwkojgc", response.tags().get("ztsfmznbaeqp"));
- Assertions.assertEquals(1949293716771945472L, response.size());
- Assertions.assertEquals(ServiceLevel.STANDARD, response.serviceLevel());
- Assertions.assertEquals(QosType.AUTO, response.qosType());
- Assertions.assertEquals(true, response.coolAccess());
- Assertions.assertEquals(EncryptionType.DOUBLE, response.encryptionType());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java
deleted file mode 100644
index 7ac76986ddb2..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.CapacityPool;
-import com.azure.resourcemanager.netapp.models.EncryptionType;
-import com.azure.resourcemanager.netapp.models.QosType;
-import com.azure.resourcemanager.netapp.models.ServiceLevel;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class PoolsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"etag\":\"jviylwdshfs\",\"properties\":{\"poolId\":\"rbgyefry\",\"size\":3627330904700196596,\"serviceLevel\":\"Premium\",\"provisioningState\":\"j\",\"totalThroughputMibps\":26.23824,\"utilizedThroughputMibps\":26.655365,\"qosType\":\"Auto\",\"coolAccess\":false,\"encryptionType\":\"Double\"},\"location\":\"rctym\",\"tags\":{\"xacpqjli\":\"ftpipiwyczu\",\"skasdvlmfwdgzxu\":\"hyus\",\"euzvx\":\"ucvpamrs\"},\"id\":\"risjnhnytxifqjz\",\"name\":\"xmrhu\",\"type\":\"lw\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.pools().list("zzxscyhwzdgiruj", "zbomvzzbtdcqvpni", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("rctym", response.iterator().next().location());
- Assertions.assertEquals("ftpipiwyczu", response.iterator().next().tags().get("xacpqjli"));
- Assertions.assertEquals(3627330904700196596L, response.iterator().next().size());
- Assertions.assertEquals(ServiceLevel.PREMIUM, response.iterator().next().serviceLevel());
- Assertions.assertEquals(QosType.AUTO, response.iterator().next().qosType());
- Assertions.assertEquals(false, response.iterator().next().coolAccess());
- Assertions.assertEquals(EncryptionType.DOUBLE, response.iterator().next().encryptionType());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java
deleted file mode 100644
index 91006170af39..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes;
-import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest;
-import org.junit.jupiter.api.Assertions;
-
-public final class QuotaAvailabilityRequestTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- QuotaAvailabilityRequest model =
- BinaryData
- .fromString(
- "{\"name\":\"gqexzlocxs\",\"type\":\"Microsoft.NetApp/netAppAccounts/capacityPools\",\"resourceGroup\":\"aierhhb\"}")
- .toObject(QuotaAvailabilityRequest.class);
- Assertions.assertEquals("gqexzlocxs", model.name());
- Assertions
- .assertEquals(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS, model.type());
- Assertions.assertEquals("aierhhb", model.resourceGroup());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- QuotaAvailabilityRequest model =
- new QuotaAvailabilityRequest()
- .withName("gqexzlocxs")
- .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS)
- .withResourceGroup("aierhhb");
- model = BinaryData.fromObject(model).toObject(QuotaAvailabilityRequest.class);
- Assertions.assertEquals("gqexzlocxs", model.name());
- Assertions
- .assertEquals(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS, model.type());
- Assertions.assertEquals("aierhhb", model.resourceGroup());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReestablishReplicationRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReestablishReplicationRequestTests.java
deleted file mode 100644
index 95dec6a2b79b..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReestablishReplicationRequestTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest;
-import org.junit.jupiter.api.Assertions;
-
-public final class ReestablishReplicationRequestTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ReestablishReplicationRequest model =
- BinaryData.fromString("{\"sourceVolumeId\":\"rnwb\"}").toObject(ReestablishReplicationRequest.class);
- Assertions.assertEquals("rnwb", model.sourceVolumeId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ReestablishReplicationRequest model = new ReestablishReplicationRequest().withSourceVolumeId("rnwb");
- model = BinaryData.fromObject(model).toObject(ReestablishReplicationRequest.class);
- Assertions.assertEquals("rnwb", model.sourceVolumeId());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoAvailabilityZoneMappingsItemTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoAvailabilityZoneMappingsItemTests.java
deleted file mode 100644
index 4e6a97c6e0b6..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoAvailabilityZoneMappingsItemTests.java
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.RegionInfoAvailabilityZoneMappingsItem;
-import org.junit.jupiter.api.Assertions;
-
-public final class RegionInfoAvailabilityZoneMappingsItemTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- RegionInfoAvailabilityZoneMappingsItem model =
- BinaryData
- .fromString("{\"availabilityZone\":\"pg\",\"isAvailable\":false}")
- .toObject(RegionInfoAvailabilityZoneMappingsItem.class);
- Assertions.assertEquals("pg", model.availabilityZone());
- Assertions.assertEquals(false, model.isAvailable());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- RegionInfoAvailabilityZoneMappingsItem model =
- new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("pg").withIsAvailable(false);
- model = BinaryData.fromObject(model).toObject(RegionInfoAvailabilityZoneMappingsItem.class);
- Assertions.assertEquals("pg", model.availabilityZone());
- Assertions.assertEquals(false, model.isAvailable());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java
deleted file mode 100644
index 46459be1af70..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.RegionInfoInner;
-import com.azure.resourcemanager.netapp.models.RegionInfoAvailabilityZoneMappingsItem;
-import com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class RegionInfoInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- RegionInfoInner model =
- BinaryData
- .fromString(
- "{\"storageToNetworkProximity\":\"T2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"ukdkexxppofmxa\",\"isAvailable\":true}]}")
- .toObject(RegionInfoInner.class);
- Assertions.assertEquals(RegionStorageToNetworkProximity.T2, model.storageToNetworkProximity());
- Assertions.assertEquals("ukdkexxppofmxa", model.availabilityZoneMappings().get(0).availabilityZone());
- Assertions.assertEquals(true, model.availabilityZoneMappings().get(0).isAvailable());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- RegionInfoInner model =
- new RegionInfoInner()
- .withStorageToNetworkProximity(RegionStorageToNetworkProximity.T2)
- .withAvailabilityZoneMappings(
- Arrays
- .asList(
- new RegionInfoAvailabilityZoneMappingsItem()
- .withAvailabilityZone("ukdkexxppofmxa")
- .withIsAvailable(true)));
- model = BinaryData.fromObject(model).toObject(RegionInfoInner.class);
- Assertions.assertEquals(RegionStorageToNetworkProximity.T2, model.storageToNetworkProximity());
- Assertions.assertEquals("ukdkexxppofmxa", model.availabilityZoneMappings().get(0).availabilityZone());
- Assertions.assertEquals(true, model.availabilityZoneMappings().get(0).isAvailable());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationInnerTests.java
deleted file mode 100644
index f9f0707ff974..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationInnerTests.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.ReplicationInner;
-import com.azure.resourcemanager.netapp.models.EndpointType;
-import com.azure.resourcemanager.netapp.models.ReplicationSchedule;
-import org.junit.jupiter.api.Assertions;
-
-public final class ReplicationInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ReplicationInner model =
- BinaryData
- .fromString(
- "{\"endpointType\":\"dst\",\"replicationSchedule\":\"hourly\",\"remoteVolumeResourceId\":\"hashsfwxosow\",\"remoteVolumeRegion\":\"cugicjoox\"}")
- .toObject(ReplicationInner.class);
- Assertions.assertEquals(EndpointType.DST, model.endpointType());
- Assertions.assertEquals(ReplicationSchedule.HOURLY, model.replicationSchedule());
- Assertions.assertEquals("hashsfwxosow", model.remoteVolumeResourceId());
- Assertions.assertEquals("cugicjoox", model.remoteVolumeRegion());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ReplicationInner model =
- new ReplicationInner()
- .withEndpointType(EndpointType.DST)
- .withReplicationSchedule(ReplicationSchedule.HOURLY)
- .withRemoteVolumeResourceId("hashsfwxosow")
- .withRemoteVolumeRegion("cugicjoox");
- model = BinaryData.fromObject(model).toObject(ReplicationInner.class);
- Assertions.assertEquals(EndpointType.DST, model.endpointType());
- Assertions.assertEquals(ReplicationSchedule.HOURLY, model.replicationSchedule());
- Assertions.assertEquals("hashsfwxosow", model.remoteVolumeResourceId());
- Assertions.assertEquals("cugicjoox", model.remoteVolumeRegion());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationObjectTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationObjectTests.java
deleted file mode 100644
index 8fcb06be71bf..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationObjectTests.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.EndpointType;
-import com.azure.resourcemanager.netapp.models.ReplicationObject;
-import com.azure.resourcemanager.netapp.models.ReplicationSchedule;
-import org.junit.jupiter.api.Assertions;
-
-public final class ReplicationObjectTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ReplicationObject model =
- BinaryData
- .fromString(
- "{\"replicationId\":\"mhjrunmpxttdbhr\",\"endpointType\":\"src\",\"replicationSchedule\":\"daily\",\"remoteVolumeResourceId\":\"kx\",\"remoteVolumeRegion\":\"skpbhenbtkcxywn\"}")
- .toObject(ReplicationObject.class);
- Assertions.assertEquals("mhjrunmpxttdbhr", model.replicationId());
- Assertions.assertEquals(EndpointType.SRC, model.endpointType());
- Assertions.assertEquals(ReplicationSchedule.DAILY, model.replicationSchedule());
- Assertions.assertEquals("kx", model.remoteVolumeResourceId());
- Assertions.assertEquals("skpbhenbtkcxywn", model.remoteVolumeRegion());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ReplicationObject model =
- new ReplicationObject()
- .withReplicationId("mhjrunmpxttdbhr")
- .withEndpointType(EndpointType.SRC)
- .withReplicationSchedule(ReplicationSchedule.DAILY)
- .withRemoteVolumeResourceId("kx")
- .withRemoteVolumeRegion("skpbhenbtkcxywn");
- model = BinaryData.fromObject(model).toObject(ReplicationObject.class);
- Assertions.assertEquals("mhjrunmpxttdbhr", model.replicationId());
- Assertions.assertEquals(EndpointType.SRC, model.endpointType());
- Assertions.assertEquals(ReplicationSchedule.DAILY, model.replicationSchedule());
- Assertions.assertEquals("kx", model.remoteVolumeResourceId());
- Assertions.assertEquals("skpbhenbtkcxywn", model.remoteVolumeRegion());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationStatusInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationStatusInnerTests.java
deleted file mode 100644
index 28212972a1e5..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationStatusInnerTests.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner;
-import com.azure.resourcemanager.netapp.models.MirrorState;
-import com.azure.resourcemanager.netapp.models.RelationshipStatus;
-import org.junit.jupiter.api.Assertions;
-
-public final class ReplicationStatusInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ReplicationStatusInner model =
- BinaryData
- .fromString(
- "{\"healthy\":false,\"relationshipStatus\":\"Idle\",\"mirrorState\":\"Mirrored\",\"totalProgress\":\"jusrtslhspk\",\"errorMessage\":\"emaofmxagkvt\"}")
- .toObject(ReplicationStatusInner.class);
- Assertions.assertEquals(false, model.healthy());
- Assertions.assertEquals(RelationshipStatus.IDLE, model.relationshipStatus());
- Assertions.assertEquals(MirrorState.MIRRORED, model.mirrorState());
- Assertions.assertEquals("jusrtslhspk", model.totalProgress());
- Assertions.assertEquals("emaofmxagkvt", model.errorMessage());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ReplicationStatusInner model =
- new ReplicationStatusInner()
- .withHealthy(false)
- .withRelationshipStatus(RelationshipStatus.IDLE)
- .withMirrorState(MirrorState.MIRRORED)
- .withTotalProgress("jusrtslhspk")
- .withErrorMessage("emaofmxagkvt");
- model = BinaryData.fromObject(model).toObject(ReplicationStatusInner.class);
- Assertions.assertEquals(false, model.healthy());
- Assertions.assertEquals(RelationshipStatus.IDLE, model.relationshipStatus());
- Assertions.assertEquals(MirrorState.MIRRORED, model.mirrorState());
- Assertions.assertEquals("jusrtslhspk", model.totalProgress());
- Assertions.assertEquals("emaofmxagkvt", model.errorMessage());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ResourceNameAvailabilityRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ResourceNameAvailabilityRequestTests.java
deleted file mode 100644
index 8d6451c398aa..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ResourceNameAvailabilityRequestTests.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.CheckNameResourceTypes;
-import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest;
-import org.junit.jupiter.api.Assertions;
-
-public final class ResourceNameAvailabilityRequestTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ResourceNameAvailabilityRequest model =
- BinaryData
- .fromString(
- "{\"name\":\"jjgpb\",\"type\":\"Microsoft.NetApp/netAppAccounts\",\"resourceGroup\":\"qcjm\"}")
- .toObject(ResourceNameAvailabilityRequest.class);
- Assertions.assertEquals("jjgpb", model.name());
- Assertions.assertEquals(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS, model.type());
- Assertions.assertEquals("qcjm", model.resourceGroup());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ResourceNameAvailabilityRequest model =
- new ResourceNameAvailabilityRequest()
- .withName("jjgpb")
- .withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS)
- .withResourceGroup("qcjm");
- model = BinaryData.fromObject(model).toObject(ResourceNameAvailabilityRequest.class);
- Assertions.assertEquals("jjgpb", model.name());
- Assertions.assertEquals(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS, model.type());
- Assertions.assertEquals("qcjm", model.resourceGroup());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RestoreStatusInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RestoreStatusInnerTests.java
deleted file mode 100644
index 33a186527b94..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RestoreStatusInnerTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.RestoreStatusInner;
-
-public final class RestoreStatusInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- RestoreStatusInner model =
- BinaryData
- .fromString(
- "{\"healthy\":true,\"relationshipStatus\":\"Transferring\",\"mirrorState\":\"Mirrored\",\"unhealthyReason\":\"bzdopcj\",\"errorMessage\":\"nhdldwmgxcx\",\"totalTransferBytes\":7813065002361041355}")
- .toObject(RestoreStatusInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- RestoreStatusInner model = new RestoreStatusInner();
- model = BinaryData.fromObject(model).toObject(RestoreStatusInner.class);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ServiceSpecificationTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ServiceSpecificationTests.java
deleted file mode 100644
index 828850cd57a9..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ServiceSpecificationTests.java
+++ /dev/null
@@ -1,158 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.LogSpecification;
-import com.azure.resourcemanager.netapp.models.MetricAggregationType;
-import com.azure.resourcemanager.netapp.models.MetricSpecification;
-import com.azure.resourcemanager.netapp.models.ServiceSpecification;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ServiceSpecificationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ServiceSpecification model =
- BinaryData
- .fromString(
- "{\"metricSpecifications\":[{\"name\":\"lluwfzitonpeq\",\"displayName\":\"jkjlxofpdvhpfx\",\"displayDescription\":\"pini\",\"unit\":\"ayhuy\",\"supportedAggregationTypes\":[\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"po\"],\"internalMetricName\":\"inuvamiheogn\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"xth\",\"sourceMdmNamespace\":\"tusivyevcciqihn\",\"dimensions\":[],\"aggregationType\":\"bwjzr\",\"fillGapWithZero\":true,\"category\":\"xgispemvtzfkufu\",\"resourceIdDimensionNameOverride\":\"jofxqe\",\"isInternal\":false},{\"name\":\"e\",\"displayName\":\"hqjbasvmsmj\",\"displayDescription\":\"lngsntnbybkzgcwr\",\"unit\":\"lxxwrljdouskc\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"kwt\"],\"internalMetricName\":\"xbnjbiksq\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"sainqpjwnzl\",\"sourceMdmNamespace\":\"fmppe\",\"dimensions\":[],\"aggregationType\":\"gxsabkyq\",\"fillGapWithZero\":false,\"category\":\"itcjczdz\",\"resourceIdDimensionNameOverride\":\"ndhkrw\",\"isInternal\":false},{\"name\":\"p\",\"displayName\":\"bdkvwrwjf\",\"displayDescription\":\"snhu\",\"unit\":\"eltmrldhugjzzdat\",\"supportedAggregationTypes\":[\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"eablg\",\"huticndvkao\",\"wyiftyhxhur\",\"k\"],\"internalMetricName\":\"yxolniwp\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"jfkgiawxk\",\"sourceMdmNamespace\":\"ypl\",\"dimensions\":[],\"aggregationType\":\"asy\",\"fillGapWithZero\":true,\"category\":\"dhsgcba\",\"resourceIdDimensionNameOverride\":\"hejkotynqgou\",\"isInternal\":false},{\"name\":\"likwyqkgfgib\",\"displayName\":\"dgak\",\"displayDescription\":\"s\",\"unit\":\"yb\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"ciqfou\",\"lmmnkzsmodmglo\",\"gpbkwtmut\"],\"internalMetricName\":\"qktapspwgcuert\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"o\",\"sourceMdmNamespace\":\"qw\",\"dimensions\":[],\"aggregationType\":\"gbbjfddgmbmbe\",\"fillGapWithZero\":true,\"category\":\"htqqrolfp\",\"resourceIdDimensionNameOverride\":\"s\",\"isInternal\":false}],\"logSpecifications\":[{\"name\":\"xigjyjgzjaoyfhr\",\"displayName\":\"ilnerkujysvlejuv\"}]}")
- .toObject(ServiceSpecification.class);
- Assertions.assertEquals("lluwfzitonpeq", model.metricSpecifications().get(0).name());
- Assertions.assertEquals("jkjlxofpdvhpfx", model.metricSpecifications().get(0).displayName());
- Assertions.assertEquals("pini", model.metricSpecifications().get(0).displayDescription());
- Assertions.assertEquals("ayhuy", model.metricSpecifications().get(0).unit());
- Assertions
- .assertEquals(
- MetricAggregationType.AVERAGE, model.metricSpecifications().get(0).supportedAggregationTypes().get(0));
- Assertions.assertEquals("po", model.metricSpecifications().get(0).supportedTimeGrainTypes().get(0));
- Assertions.assertEquals("inuvamiheogn", model.metricSpecifications().get(0).internalMetricName());
- Assertions.assertEquals(false, model.metricSpecifications().get(0).enableRegionalMdmAccount());
- Assertions.assertEquals("xth", model.metricSpecifications().get(0).sourceMdmAccount());
- Assertions.assertEquals("tusivyevcciqihn", model.metricSpecifications().get(0).sourceMdmNamespace());
- Assertions.assertEquals("bwjzr", model.metricSpecifications().get(0).aggregationType());
- Assertions.assertEquals(true, model.metricSpecifications().get(0).fillGapWithZero());
- Assertions.assertEquals("xgispemvtzfkufu", model.metricSpecifications().get(0).category());
- Assertions.assertEquals("jofxqe", model.metricSpecifications().get(0).resourceIdDimensionNameOverride());
- Assertions.assertEquals(false, model.metricSpecifications().get(0).isInternal());
- Assertions.assertEquals("xigjyjgzjaoyfhr", model.logSpecifications().get(0).name());
- Assertions.assertEquals("ilnerkujysvlejuv", model.logSpecifications().get(0).displayName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ServiceSpecification model =
- new ServiceSpecification()
- .withMetricSpecifications(
- Arrays
- .asList(
- new MetricSpecification()
- .withName("lluwfzitonpeq")
- .withDisplayName("jkjlxofpdvhpfx")
- .withDisplayDescription("pini")
- .withUnit("ayhuy")
- .withSupportedAggregationTypes(
- Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE))
- .withSupportedTimeGrainTypes(Arrays.asList("po"))
- .withInternalMetricName("inuvamiheogn")
- .withEnableRegionalMdmAccount(false)
- .withSourceMdmAccount("xth")
- .withSourceMdmNamespace("tusivyevcciqihn")
- .withDimensions(Arrays.asList())
- .withAggregationType("bwjzr")
- .withFillGapWithZero(true)
- .withCategory("xgispemvtzfkufu")
- .withResourceIdDimensionNameOverride("jofxqe")
- .withIsInternal(false),
- new MetricSpecification()
- .withName("e")
- .withDisplayName("hqjbasvmsmj")
- .withDisplayDescription("lngsntnbybkzgcwr")
- .withUnit("lxxwrljdouskc")
- .withSupportedAggregationTypes(
- Arrays
- .asList(
- MetricAggregationType.AVERAGE,
- MetricAggregationType.AVERAGE,
- MetricAggregationType.AVERAGE,
- MetricAggregationType.AVERAGE))
- .withSupportedTimeGrainTypes(Arrays.asList("kwt"))
- .withInternalMetricName("xbnjbiksq")
- .withEnableRegionalMdmAccount(false)
- .withSourceMdmAccount("sainqpjwnzl")
- .withSourceMdmNamespace("fmppe")
- .withDimensions(Arrays.asList())
- .withAggregationType("gxsabkyq")
- .withFillGapWithZero(false)
- .withCategory("itcjczdz")
- .withResourceIdDimensionNameOverride("ndhkrw")
- .withIsInternal(false),
- new MetricSpecification()
- .withName("p")
- .withDisplayName("bdkvwrwjf")
- .withDisplayDescription("snhu")
- .withUnit("eltmrldhugjzzdat")
- .withSupportedAggregationTypes(
- Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE))
- .withSupportedTimeGrainTypes(Arrays.asList("eablg", "huticndvkao", "wyiftyhxhur", "k"))
- .withInternalMetricName("yxolniwp")
- .withEnableRegionalMdmAccount(true)
- .withSourceMdmAccount("jfkgiawxk")
- .withSourceMdmNamespace("ypl")
- .withDimensions(Arrays.asList())
- .withAggregationType("asy")
- .withFillGapWithZero(true)
- .withCategory("dhsgcba")
- .withResourceIdDimensionNameOverride("hejkotynqgou")
- .withIsInternal(false),
- new MetricSpecification()
- .withName("likwyqkgfgib")
- .withDisplayName("dgak")
- .withDisplayDescription("s")
- .withUnit("yb")
- .withSupportedAggregationTypes(
- Arrays
- .asList(
- MetricAggregationType.AVERAGE,
- MetricAggregationType.AVERAGE,
- MetricAggregationType.AVERAGE,
- MetricAggregationType.AVERAGE))
- .withSupportedTimeGrainTypes(Arrays.asList("ciqfou", "lmmnkzsmodmglo", "gpbkwtmut"))
- .withInternalMetricName("qktapspwgcuert")
- .withEnableRegionalMdmAccount(false)
- .withSourceMdmAccount("o")
- .withSourceMdmNamespace("qw")
- .withDimensions(Arrays.asList())
- .withAggregationType("gbbjfddgmbmbe")
- .withFillGapWithZero(true)
- .withCategory("htqqrolfp")
- .withResourceIdDimensionNameOverride("s")
- .withIsInternal(false)))
- .withLogSpecifications(
- Arrays
- .asList(
- new LogSpecification().withName("xigjyjgzjaoyfhr").withDisplayName("ilnerkujysvlejuv")));
- model = BinaryData.fromObject(model).toObject(ServiceSpecification.class);
- Assertions.assertEquals("lluwfzitonpeq", model.metricSpecifications().get(0).name());
- Assertions.assertEquals("jkjlxofpdvhpfx", model.metricSpecifications().get(0).displayName());
- Assertions.assertEquals("pini", model.metricSpecifications().get(0).displayDescription());
- Assertions.assertEquals("ayhuy", model.metricSpecifications().get(0).unit());
- Assertions
- .assertEquals(
- MetricAggregationType.AVERAGE, model.metricSpecifications().get(0).supportedAggregationTypes().get(0));
- Assertions.assertEquals("po", model.metricSpecifications().get(0).supportedTimeGrainTypes().get(0));
- Assertions.assertEquals("inuvamiheogn", model.metricSpecifications().get(0).internalMetricName());
- Assertions.assertEquals(false, model.metricSpecifications().get(0).enableRegionalMdmAccount());
- Assertions.assertEquals("xth", model.metricSpecifications().get(0).sourceMdmAccount());
- Assertions.assertEquals("tusivyevcciqihn", model.metricSpecifications().get(0).sourceMdmNamespace());
- Assertions.assertEquals("bwjzr", model.metricSpecifications().get(0).aggregationType());
- Assertions.assertEquals(true, model.metricSpecifications().get(0).fillGapWithZero());
- Assertions.assertEquals("xgispemvtzfkufu", model.metricSpecifications().get(0).category());
- Assertions.assertEquals("jofxqe", model.metricSpecifications().get(0).resourceIdDimensionNameOverride());
- Assertions.assertEquals(false, model.metricSpecifications().get(0).isInternal());
- Assertions.assertEquals("xigjyjgzjaoyfhr", model.logSpecifications().get(0).name());
- Assertions.assertEquals("ilnerkujysvlejuv", model.logSpecifications().get(0).displayName());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotInnerTests.java
deleted file mode 100644
index 614a565c1dbc..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotInnerTests.java
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.SnapshotInner;
-import org.junit.jupiter.api.Assertions;
-
-public final class SnapshotInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SnapshotInner model =
- BinaryData
- .fromString(
- "{\"location\":\"zlmwlxkvugfhz\",\"properties\":{\"snapshotId\":\"wjvzunluthnn\",\"created\":\"2021-03-11T05:06:45Z\",\"provisioningState\":\"i\"},\"id\":\"ilpjzuaejxdult\",\"name\":\"kzbbtd\",\"type\":\"umveekgpwozuhkf\"}")
- .toObject(SnapshotInner.class);
- Assertions.assertEquals("zlmwlxkvugfhz", model.location());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SnapshotInner model = new SnapshotInner().withLocation("zlmwlxkvugfhz");
- model = BinaryData.fromObject(model).toObject(SnapshotInner.class);
- Assertions.assertEquals("zlmwlxkvugfhz", model.location());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java
deleted file mode 100644
index d2c1791e2691..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java
+++ /dev/null
@@ -1,135 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.DailySchedule;
-import com.azure.resourcemanager.netapp.models.HourlySchedule;
-import com.azure.resourcemanager.netapp.models.MonthlySchedule;
-import com.azure.resourcemanager.netapp.models.SnapshotPolicy;
-import com.azure.resourcemanager.netapp.models.WeeklySchedule;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class SnapshotPoliciesCreateWithResponseMockTests {
- @Test
- public void testCreateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"etag\":\"jid\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1763110580,\"minute\":1374695683,\"usedBytes\":8248669428764587059},\"dailySchedule\":{\"snapshotsToKeep\":2084257328,\"hour\":618500847,\"minute\":1570149623,\"usedBytes\":3500912749026197727},\"weeklySchedule\":{\"snapshotsToKeep\":602295715,\"day\":\"geuaulx\",\"hour\":783935050,\"minute\":1584096460,\"usedBytes\":1025453690932299158},\"monthlySchedule\":{\"snapshotsToKeep\":1476296254,\"daysOfMonth\":\"nenlsvxeizzg\",\"hour\":1958797848,\"minute\":2086736187,\"usedBytes\":4209661666295596661},\"enabled\":true,\"provisioningState\":\"cxcktpi\"},\"location\":\"erteeammxqiekk\",\"tags\":{\"mxvavrefdee\":\"drtkgdoj\",\"xs\":\"vecuijpx\",\"wsawddjibabxvi\":\"wprtu\"},\"id\":\"itvtzeexavo\",\"name\":\"tfgle\",\"type\":\"dmdqb\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- SnapshotPolicy response =
- manager
- .snapshotPolicies()
- .define("xxrtikvc")
- .withRegion("cansymoyqhlwigd")
- .withExistingNetAppAccount("zdzgtilaxhnfhqly", "ijouwivkxoyzunb")
- .withTags(mapOf("ajuwas", "kbxgom", "hzbezkgi", "vdaeyyguxakjsq", "vvjskgfmocwahp", "sidxasicdd"))
- .withHourlySchedule(
- new HourlySchedule()
- .withSnapshotsToKeep(916087616)
- .withMinute(1269366447)
- .withUsedBytes(1943698242721661529L))
- .withDailySchedule(
- new DailySchedule()
- .withSnapshotsToKeep(27132642)
- .withHour(1600333305)
- .withMinute(1221530840)
- .withUsedBytes(5358862832851160047L))
- .withWeeklySchedule(
- new WeeklySchedule()
- .withSnapshotsToKeep(898501663)
- .withDay("qskaw")
- .withHour(1561642293)
- .withMinute(793073079)
- .withUsedBytes(4618566353209491802L))
- .withMonthlySchedule(
- new MonthlySchedule()
- .withSnapshotsToKeep(483847293)
- .withDaysOfMonth("tqlkz")
- .withHour(910896257)
- .withMinute(1366992874)
- .withUsedBytes(3840225965423705629L))
- .withEnabled(false)
- .create();
-
- Assertions.assertEquals("erteeammxqiekk", response.location());
- Assertions.assertEquals("drtkgdoj", response.tags().get("mxvavrefdee"));
- Assertions.assertEquals(1763110580, response.hourlySchedule().snapshotsToKeep());
- Assertions.assertEquals(1374695683, response.hourlySchedule().minute());
- Assertions.assertEquals(8248669428764587059L, response.hourlySchedule().usedBytes());
- Assertions.assertEquals(2084257328, response.dailySchedule().snapshotsToKeep());
- Assertions.assertEquals(618500847, response.dailySchedule().hour());
- Assertions.assertEquals(1570149623, response.dailySchedule().minute());
- Assertions.assertEquals(3500912749026197727L, response.dailySchedule().usedBytes());
- Assertions.assertEquals(602295715, response.weeklySchedule().snapshotsToKeep());
- Assertions.assertEquals("geuaulx", response.weeklySchedule().day());
- Assertions.assertEquals(783935050, response.weeklySchedule().hour());
- Assertions.assertEquals(1584096460, response.weeklySchedule().minute());
- Assertions.assertEquals(1025453690932299158L, response.weeklySchedule().usedBytes());
- Assertions.assertEquals(1476296254, response.monthlySchedule().snapshotsToKeep());
- Assertions.assertEquals("nenlsvxeizzg", response.monthlySchedule().daysOfMonth());
- Assertions.assertEquals(1958797848, response.monthlySchedule().hour());
- Assertions.assertEquals(2086736187, response.monthlySchedule().minute());
- Assertions.assertEquals(4209661666295596661L, response.monthlySchedule().usedBytes());
- Assertions.assertEquals(true, response.enabled());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java
deleted file mode 100644
index c5b91f2c5e50..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class SnapshotPoliciesDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.snapshotPolicies().delete("wyivqikf", "cvhrfsp", "uagrttikteusqc", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java
deleted file mode 100644
index 54fec66809e1..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java
+++ /dev/null
@@ -1,89 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.SnapshotPolicy;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class SnapshotPoliciesGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"etag\":\"lyr\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":690539216,\"minute\":3097732,\"usedBytes\":143948817696336233},\"dailySchedule\":{\"snapshotsToKeep\":795059025,\"hour\":476633476,\"minute\":842850517,\"usedBytes\":2926690078716426090},\"weeklySchedule\":{\"snapshotsToKeep\":2096767076,\"day\":\"zldmozuxy\",\"hour\":2095359903,\"minute\":1055127895,\"usedBytes\":1611950859305469556},\"monthlySchedule\":{\"snapshotsToKeep\":201650328,\"daysOfMonth\":\"wn\",\"hour\":268742670,\"minute\":1188867128,\"usedBytes\":3403010203724672320},\"enabled\":true,\"provisioningState\":\"to\"},\"location\":\"mi\",\"tags\":{\"jy\":\"ieypef\",\"u\":\"dh\",\"khihihlhzds\":\"lcplc\",\"mvec\":\"tzbsrgnowcjhf\"},\"id\":\"ctxmwoteyowcluq\",\"name\":\"vekqvgqo\",\"type\":\"wifzmp\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- SnapshotPolicy response =
- manager
- .snapshotPolicies()
- .getWithResponse("vodggxdbee", "mieknlraria", "wiuagydwqf", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("mi", response.location());
- Assertions.assertEquals("ieypef", response.tags().get("jy"));
- Assertions.assertEquals(690539216, response.hourlySchedule().snapshotsToKeep());
- Assertions.assertEquals(3097732, response.hourlySchedule().minute());
- Assertions.assertEquals(143948817696336233L, response.hourlySchedule().usedBytes());
- Assertions.assertEquals(795059025, response.dailySchedule().snapshotsToKeep());
- Assertions.assertEquals(476633476, response.dailySchedule().hour());
- Assertions.assertEquals(842850517, response.dailySchedule().minute());
- Assertions.assertEquals(2926690078716426090L, response.dailySchedule().usedBytes());
- Assertions.assertEquals(2096767076, response.weeklySchedule().snapshotsToKeep());
- Assertions.assertEquals("zldmozuxy", response.weeklySchedule().day());
- Assertions.assertEquals(2095359903, response.weeklySchedule().hour());
- Assertions.assertEquals(1055127895, response.weeklySchedule().minute());
- Assertions.assertEquals(1611950859305469556L, response.weeklySchedule().usedBytes());
- Assertions.assertEquals(201650328, response.monthlySchedule().snapshotsToKeep());
- Assertions.assertEquals("wn", response.monthlySchedule().daysOfMonth());
- Assertions.assertEquals(268742670, response.monthlySchedule().hour());
- Assertions.assertEquals(1188867128, response.monthlySchedule().minute());
- Assertions.assertEquals(3403010203724672320L, response.monthlySchedule().usedBytes());
- Assertions.assertEquals(true, response.enabled());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java
deleted file mode 100644
index 80f2b3aebe6c..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java
+++ /dev/null
@@ -1,87 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.SnapshotPolicy;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class SnapshotPoliciesListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"etag\":\"gtrd\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":814510520,\"minute\":1598759472,\"usedBytes\":7911162716936907677},\"dailySchedule\":{\"snapshotsToKeep\":599707965,\"hour\":1678169491,\"minute\":1977061992,\"usedBytes\":8568779833927779378},\"weeklySchedule\":{\"snapshotsToKeep\":214541271,\"day\":\"wgck\",\"hour\":2089880576,\"minute\":1062558115,\"usedBytes\":8246263675680449043},\"monthlySchedule\":{\"snapshotsToKeep\":848051352,\"daysOfMonth\":\"qrouda\",\"hour\":1222177326,\"minute\":983319002,\"usedBytes\":3026578627904197767},\"enabled\":false,\"provisioningState\":\"unzo\"},\"location\":\"dhcxgkmoy\",\"tags\":{\"dnbzydvfvfcjn\":\"yuibhm\",\"fukiscvwmzhw\":\"eoisrvhmgor\"},\"id\":\"lefaxvxilcbtgn\",\"name\":\"nzeyqxtjj\",\"type\":\"zqlqhyc\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.snapshotPolicies().list("hihfrbbcevqagtlt", "hlfkqojpy", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("dhcxgkmoy", response.iterator().next().location());
- Assertions.assertEquals("yuibhm", response.iterator().next().tags().get("dnbzydvfvfcjn"));
- Assertions.assertEquals(814510520, response.iterator().next().hourlySchedule().snapshotsToKeep());
- Assertions.assertEquals(1598759472, response.iterator().next().hourlySchedule().minute());
- Assertions.assertEquals(7911162716936907677L, response.iterator().next().hourlySchedule().usedBytes());
- Assertions.assertEquals(599707965, response.iterator().next().dailySchedule().snapshotsToKeep());
- Assertions.assertEquals(1678169491, response.iterator().next().dailySchedule().hour());
- Assertions.assertEquals(1977061992, response.iterator().next().dailySchedule().minute());
- Assertions.assertEquals(8568779833927779378L, response.iterator().next().dailySchedule().usedBytes());
- Assertions.assertEquals(214541271, response.iterator().next().weeklySchedule().snapshotsToKeep());
- Assertions.assertEquals("wgck", response.iterator().next().weeklySchedule().day());
- Assertions.assertEquals(2089880576, response.iterator().next().weeklySchedule().hour());
- Assertions.assertEquals(1062558115, response.iterator().next().weeklySchedule().minute());
- Assertions.assertEquals(8246263675680449043L, response.iterator().next().weeklySchedule().usedBytes());
- Assertions.assertEquals(848051352, response.iterator().next().monthlySchedule().snapshotsToKeep());
- Assertions.assertEquals("qrouda", response.iterator().next().monthlySchedule().daysOfMonth());
- Assertions.assertEquals(1222177326, response.iterator().next().monthlySchedule().hour());
- Assertions.assertEquals(983319002, response.iterator().next().monthlySchedule().minute());
- Assertions.assertEquals(3026578627904197767L, response.iterator().next().monthlySchedule().usedBytes());
- Assertions.assertEquals(false, response.iterator().next().enabled());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListTests.java
deleted file mode 100644
index 3fed2af79d47..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListTests.java
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyInner;
-import com.azure.resourcemanager.netapp.models.SnapshotPoliciesList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class SnapshotPoliciesListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SnapshotPoliciesList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"etag\":\"yaw\",\"properties\":{\"enabled\":true,\"provisioningState\":\"yjpkiidzyexz\"},\"location\":\"lixhnrztfol\",\"tags\":{\"dtpnapnyiropuhp\":\"xknalaulppg\",\"gqgitxmedjvcsl\":\"gvpgy\",\"wwncwzzhxgk\":\"n\"},\"id\":\"rmgucnap\",\"name\":\"t\",\"type\":\"oellwp\"},{\"etag\":\"d\",\"properties\":{\"enabled\":true,\"provisioningState\":\"ceopzfqrhhuaopp\"},\"location\":\"qeqxo\",\"tags\":{\"moizpos\":\"ahzxctobgbk\",\"rmfqjhhkxbpvj\":\"mgrcfbu\",\"xjyngudivk\":\"mjh\"},\"id\":\"tswb\",\"name\":\"qzvszjf\",\"type\":\"uvjfdxxive\"},{\"etag\":\"t\",\"properties\":{\"enabled\":true,\"provisioningState\":\"mcbxvwvxysl\"},\"location\":\"hsfxoblytkb\",\"tags\":{\"hqjohxcrsbfova\":\"ewwwfbkrvrnsv\"},\"id\":\"rruvwbhsq\",\"name\":\"sub\",\"type\":\"gjb\"}]}")
- .toObject(SnapshotPoliciesList.class);
- Assertions.assertEquals("lixhnrztfol", model.value().get(0).location());
- Assertions.assertEquals("xknalaulppg", model.value().get(0).tags().get("dtpnapnyiropuhp"));
- Assertions.assertEquals(true, model.value().get(0).enabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SnapshotPoliciesList model =
- new SnapshotPoliciesList()
- .withValue(
- Arrays
- .asList(
- new SnapshotPolicyInner()
- .withLocation("lixhnrztfol")
- .withTags(
- mapOf(
- "dtpnapnyiropuhp",
- "xknalaulppg",
- "gqgitxmedjvcsl",
- "gvpgy",
- "wwncwzzhxgk",
- "n"))
- .withEnabled(true),
- new SnapshotPolicyInner()
- .withLocation("qeqxo")
- .withTags(
- mapOf("moizpos", "ahzxctobgbk", "rmfqjhhkxbpvj", "mgrcfbu", "xjyngudivk", "mjh"))
- .withEnabled(true),
- new SnapshotPolicyInner()
- .withLocation("hsfxoblytkb")
- .withTags(mapOf("hqjohxcrsbfova", "ewwwfbkrvrnsv"))
- .withEnabled(true)));
- model = BinaryData.fromObject(model).toObject(SnapshotPoliciesList.class);
- Assertions.assertEquals("lixhnrztfol", model.value().get(0).location());
- Assertions.assertEquals("xknalaulppg", model.value().get(0).tags().get("dtpnapnyiropuhp"));
- Assertions.assertEquals(true, model.value().get(0).enabled());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesWithResponseMockTests.java
deleted file mode 100644
index fda8cd152187..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesWithResponseMockTests.java
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.SnapshotPolicyVolumeList;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class SnapshotPoliciesListVolumesWithResponseMockTests {
- @Test
- public void testListVolumesWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"etag\":\"ttwgdsl\",\"zones\":[\"hhrmooizqsey\",\"xiutcx\"],\"location\":\"zhyrpeto\",\"tags\":{\"rqnkkzjcjbtr\":\"joxslhvnhla\",\"eitpkxztmo\":\"aehvvibrxjjstoq\"},\"id\":\"bklftidgfcwqmpim\",\"name\":\"qxzhem\",\"type\":\"yhohujswtwkozzwc\"},{\"etag\":\"kb\",\"zones\":[\"fajnjwltlwtjjguk\",\"alhsnvkc\",\"mxzrpoa\",\"mlnwiaaomylweazu\"],\"location\":\"sethwwn\",\"tags\":{\"zswpchwa\":\"l\"},\"id\":\"fb\",\"name\":\"usnfepgfewet\",\"type\":\"l\"},{\"etag\":\"gncxykxhdj\",\"zones\":[\"mmbcxfhbcp\",\"rxvxcjzh\"],\"location\":\"zxfpxtgqsc\",\"tags\":{\"qaz\":\"ftjuh\",\"pijrajcivmmghf\":\"mtggu\"},\"id\":\"fiwrxgkn\",\"name\":\"uvyinzqodfvpgs\",\"type\":\"oxgsgbpfgzdjtx\"},{\"etag\":\"flbqvgaq\",\"zones\":[\"a\",\"cqusr\"],\"location\":\"etnwsdtutnw\",\"tags\":{\"k\":\"ycvuzhyrmewipmv\",\"xundxgk\":\"xukuqgsj\",\"muvgp\":\"twzhhzjhfjmhv\",\"uzjyihsasbhudypo\":\"uneqsxvmhf\"},\"id\":\"yue\",\"name\":\"slynsqyrpfoo\",\"type\":\"rlttymsjnygqdnfw\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- SnapshotPolicyVolumeList response =
- manager
- .snapshotPolicies()
- .listVolumesWithResponse("kvyklxubyjaffmm", "bl", "qcuubgqibrta", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("zhyrpeto", response.value().get(0).location());
- Assertions.assertEquals("joxslhvnhla", response.value().get(0).tags().get("rqnkkzjcjbtr"));
- Assertions.assertEquals("hhrmooizqsey", response.value().get(0).zones().get(0));
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyInnerTests.java
deleted file mode 100644
index bf9aee512295..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyInnerTests.java
+++ /dev/null
@@ -1,121 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyInner;
-import com.azure.resourcemanager.netapp.models.DailySchedule;
-import com.azure.resourcemanager.netapp.models.HourlySchedule;
-import com.azure.resourcemanager.netapp.models.MonthlySchedule;
-import com.azure.resourcemanager.netapp.models.WeeklySchedule;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class SnapshotPolicyInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SnapshotPolicyInner model =
- BinaryData
- .fromString(
- "{\"etag\":\"xb\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":592118206,\"minute\":2111014163,\"usedBytes\":6393280056529572651},\"dailySchedule\":{\"snapshotsToKeep\":157171235,\"hour\":2146010865,\"minute\":22179172,\"usedBytes\":9027138809470227979},\"weeklySchedule\":{\"snapshotsToKeep\":1616367631,\"day\":\"exilzznfqqnvwpmq\",\"hour\":1628769376,\"minute\":1284168772,\"usedBytes\":2678080660083018694},\"monthlySchedule\":{\"snapshotsToKeep\":994022828,\"daysOfMonth\":\"wqytjrybnwjewgdr\",\"hour\":452547665,\"minute\":1059734695,\"usedBytes\":2844407552586736400},\"enabled\":true,\"provisioningState\":\"hin\"},\"location\":\"ygmi\",\"tags\":{\"qig\":\"nzdndslgna\",\"qolbgyc\":\"nduhavhqlkthum\",\"tgccymvaolpss\":\"uie\",\"lzpswiydm\":\"qlfmmdnbb\"},\"id\":\"wyhzdx\",\"name\":\"sadbz\",\"type\":\"nvdfznuda\"}")
- .toObject(SnapshotPolicyInner.class);
- Assertions.assertEquals("ygmi", model.location());
- Assertions.assertEquals("nzdndslgna", model.tags().get("qig"));
- Assertions.assertEquals(592118206, model.hourlySchedule().snapshotsToKeep());
- Assertions.assertEquals(2111014163, model.hourlySchedule().minute());
- Assertions.assertEquals(6393280056529572651L, model.hourlySchedule().usedBytes());
- Assertions.assertEquals(157171235, model.dailySchedule().snapshotsToKeep());
- Assertions.assertEquals(2146010865, model.dailySchedule().hour());
- Assertions.assertEquals(22179172, model.dailySchedule().minute());
- Assertions.assertEquals(9027138809470227979L, model.dailySchedule().usedBytes());
- Assertions.assertEquals(1616367631, model.weeklySchedule().snapshotsToKeep());
- Assertions.assertEquals("exilzznfqqnvwpmq", model.weeklySchedule().day());
- Assertions.assertEquals(1628769376, model.weeklySchedule().hour());
- Assertions.assertEquals(1284168772, model.weeklySchedule().minute());
- Assertions.assertEquals(2678080660083018694L, model.weeklySchedule().usedBytes());
- Assertions.assertEquals(994022828, model.monthlySchedule().snapshotsToKeep());
- Assertions.assertEquals("wqytjrybnwjewgdr", model.monthlySchedule().daysOfMonth());
- Assertions.assertEquals(452547665, model.monthlySchedule().hour());
- Assertions.assertEquals(1059734695, model.monthlySchedule().minute());
- Assertions.assertEquals(2844407552586736400L, model.monthlySchedule().usedBytes());
- Assertions.assertEquals(true, model.enabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SnapshotPolicyInner model =
- new SnapshotPolicyInner()
- .withLocation("ygmi")
- .withTags(
- mapOf(
- "qig",
- "nzdndslgna",
- "qolbgyc",
- "nduhavhqlkthum",
- "tgccymvaolpss",
- "uie",
- "lzpswiydm",
- "qlfmmdnbb"))
- .withHourlySchedule(
- new HourlySchedule()
- .withSnapshotsToKeep(592118206)
- .withMinute(2111014163)
- .withUsedBytes(6393280056529572651L))
- .withDailySchedule(
- new DailySchedule()
- .withSnapshotsToKeep(157171235)
- .withHour(2146010865)
- .withMinute(22179172)
- .withUsedBytes(9027138809470227979L))
- .withWeeklySchedule(
- new WeeklySchedule()
- .withSnapshotsToKeep(1616367631)
- .withDay("exilzznfqqnvwpmq")
- .withHour(1628769376)
- .withMinute(1284168772)
- .withUsedBytes(2678080660083018694L))
- .withMonthlySchedule(
- new MonthlySchedule()
- .withSnapshotsToKeep(994022828)
- .withDaysOfMonth("wqytjrybnwjewgdr")
- .withHour(452547665)
- .withMinute(1059734695)
- .withUsedBytes(2844407552586736400L))
- .withEnabled(true);
- model = BinaryData.fromObject(model).toObject(SnapshotPolicyInner.class);
- Assertions.assertEquals("ygmi", model.location());
- Assertions.assertEquals("nzdndslgna", model.tags().get("qig"));
- Assertions.assertEquals(592118206, model.hourlySchedule().snapshotsToKeep());
- Assertions.assertEquals(2111014163, model.hourlySchedule().minute());
- Assertions.assertEquals(6393280056529572651L, model.hourlySchedule().usedBytes());
- Assertions.assertEquals(157171235, model.dailySchedule().snapshotsToKeep());
- Assertions.assertEquals(2146010865, model.dailySchedule().hour());
- Assertions.assertEquals(22179172, model.dailySchedule().minute());
- Assertions.assertEquals(9027138809470227979L, model.dailySchedule().usedBytes());
- Assertions.assertEquals(1616367631, model.weeklySchedule().snapshotsToKeep());
- Assertions.assertEquals("exilzznfqqnvwpmq", model.weeklySchedule().day());
- Assertions.assertEquals(1628769376, model.weeklySchedule().hour());
- Assertions.assertEquals(1284168772, model.weeklySchedule().minute());
- Assertions.assertEquals(2678080660083018694L, model.weeklySchedule().usedBytes());
- Assertions.assertEquals(994022828, model.monthlySchedule().snapshotsToKeep());
- Assertions.assertEquals("wqytjrybnwjewgdr", model.monthlySchedule().daysOfMonth());
- Assertions.assertEquals(452547665, model.monthlySchedule().hour());
- Assertions.assertEquals(1059734695, model.monthlySchedule().minute());
- Assertions.assertEquals(2844407552586736400L, model.monthlySchedule().usedBytes());
- Assertions.assertEquals(true, model.enabled());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPatchTests.java
deleted file mode 100644
index 6cb5c1bab10f..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPatchTests.java
+++ /dev/null
@@ -1,119 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.DailySchedule;
-import com.azure.resourcemanager.netapp.models.HourlySchedule;
-import com.azure.resourcemanager.netapp.models.MonthlySchedule;
-import com.azure.resourcemanager.netapp.models.SnapshotPolicyPatch;
-import com.azure.resourcemanager.netapp.models.WeeklySchedule;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class SnapshotPolicyPatchTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SnapshotPolicyPatch model =
- BinaryData
- .fromString(
- "{\"location\":\"ikvmkqzeqqk\",\"id\":\"tfz\",\"name\":\"hhvh\",\"type\":\"r\",\"tags\":{\"xbxwa\":\"kwobdagxtibq\",\"iplbpodxunkbebxm\":\"bogqxndlkzgxhu\",\"oievseotgqrlltm\":\"byyntwlrbqt\"},\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":738915892,\"minute\":284153241,\"usedBytes\":2432465930399611430},\"dailySchedule\":{\"snapshotsToKeep\":1065910925,\"hour\":2123049773,\"minute\":904231635,\"usedBytes\":367607290034890001},\"weeklySchedule\":{\"snapshotsToKeep\":1571088052,\"day\":\"bttdumorppxe\",\"hour\":1702938248,\"minute\":1487228003,\"usedBytes\":6728883083486841207},\"monthlySchedule\":{\"snapshotsToKeep\":1089631014,\"daysOfMonth\":\"kfgohdneue\",\"hour\":1976701075,\"minute\":1777092191,\"usedBytes\":5814437001624716680},\"enabled\":true,\"provisioningState\":\"fikdowwqu\"}}")
- .toObject(SnapshotPolicyPatch.class);
- Assertions.assertEquals("ikvmkqzeqqk", model.location());
- Assertions.assertEquals("kwobdagxtibq", model.tags().get("xbxwa"));
- Assertions.assertEquals(738915892, model.hourlySchedule().snapshotsToKeep());
- Assertions.assertEquals(284153241, model.hourlySchedule().minute());
- Assertions.assertEquals(2432465930399611430L, model.hourlySchedule().usedBytes());
- Assertions.assertEquals(1065910925, model.dailySchedule().snapshotsToKeep());
- Assertions.assertEquals(2123049773, model.dailySchedule().hour());
- Assertions.assertEquals(904231635, model.dailySchedule().minute());
- Assertions.assertEquals(367607290034890001L, model.dailySchedule().usedBytes());
- Assertions.assertEquals(1571088052, model.weeklySchedule().snapshotsToKeep());
- Assertions.assertEquals("bttdumorppxe", model.weeklySchedule().day());
- Assertions.assertEquals(1702938248, model.weeklySchedule().hour());
- Assertions.assertEquals(1487228003, model.weeklySchedule().minute());
- Assertions.assertEquals(6728883083486841207L, model.weeklySchedule().usedBytes());
- Assertions.assertEquals(1089631014, model.monthlySchedule().snapshotsToKeep());
- Assertions.assertEquals("kfgohdneue", model.monthlySchedule().daysOfMonth());
- Assertions.assertEquals(1976701075, model.monthlySchedule().hour());
- Assertions.assertEquals(1777092191, model.monthlySchedule().minute());
- Assertions.assertEquals(5814437001624716680L, model.monthlySchedule().usedBytes());
- Assertions.assertEquals(true, model.enabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SnapshotPolicyPatch model =
- new SnapshotPolicyPatch()
- .withLocation("ikvmkqzeqqk")
- .withTags(
- mapOf(
- "xbxwa",
- "kwobdagxtibq",
- "iplbpodxunkbebxm",
- "bogqxndlkzgxhu",
- "oievseotgqrlltm",
- "byyntwlrbqt"))
- .withHourlySchedule(
- new HourlySchedule()
- .withSnapshotsToKeep(738915892)
- .withMinute(284153241)
- .withUsedBytes(2432465930399611430L))
- .withDailySchedule(
- new DailySchedule()
- .withSnapshotsToKeep(1065910925)
- .withHour(2123049773)
- .withMinute(904231635)
- .withUsedBytes(367607290034890001L))
- .withWeeklySchedule(
- new WeeklySchedule()
- .withSnapshotsToKeep(1571088052)
- .withDay("bttdumorppxe")
- .withHour(1702938248)
- .withMinute(1487228003)
- .withUsedBytes(6728883083486841207L))
- .withMonthlySchedule(
- new MonthlySchedule()
- .withSnapshotsToKeep(1089631014)
- .withDaysOfMonth("kfgohdneue")
- .withHour(1976701075)
- .withMinute(1777092191)
- .withUsedBytes(5814437001624716680L))
- .withEnabled(true);
- model = BinaryData.fromObject(model).toObject(SnapshotPolicyPatch.class);
- Assertions.assertEquals("ikvmkqzeqqk", model.location());
- Assertions.assertEquals("kwobdagxtibq", model.tags().get("xbxwa"));
- Assertions.assertEquals(738915892, model.hourlySchedule().snapshotsToKeep());
- Assertions.assertEquals(284153241, model.hourlySchedule().minute());
- Assertions.assertEquals(2432465930399611430L, model.hourlySchedule().usedBytes());
- Assertions.assertEquals(1065910925, model.dailySchedule().snapshotsToKeep());
- Assertions.assertEquals(2123049773, model.dailySchedule().hour());
- Assertions.assertEquals(904231635, model.dailySchedule().minute());
- Assertions.assertEquals(367607290034890001L, model.dailySchedule().usedBytes());
- Assertions.assertEquals(1571088052, model.weeklySchedule().snapshotsToKeep());
- Assertions.assertEquals("bttdumorppxe", model.weeklySchedule().day());
- Assertions.assertEquals(1702938248, model.weeklySchedule().hour());
- Assertions.assertEquals(1487228003, model.weeklySchedule().minute());
- Assertions.assertEquals(6728883083486841207L, model.weeklySchedule().usedBytes());
- Assertions.assertEquals(1089631014, model.monthlySchedule().snapshotsToKeep());
- Assertions.assertEquals("kfgohdneue", model.monthlySchedule().daysOfMonth());
- Assertions.assertEquals(1976701075, model.monthlySchedule().hour());
- Assertions.assertEquals(1777092191, model.monthlySchedule().minute());
- Assertions.assertEquals(5814437001624716680L, model.monthlySchedule().usedBytes());
- Assertions.assertEquals(true, model.enabled());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPropertiesTests.java
deleted file mode 100644
index d2d453d180d5..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPropertiesTests.java
+++ /dev/null
@@ -1,93 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyProperties;
-import com.azure.resourcemanager.netapp.models.DailySchedule;
-import com.azure.resourcemanager.netapp.models.HourlySchedule;
-import com.azure.resourcemanager.netapp.models.MonthlySchedule;
-import com.azure.resourcemanager.netapp.models.WeeklySchedule;
-import org.junit.jupiter.api.Assertions;
-
-public final class SnapshotPolicyPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SnapshotPolicyProperties model =
- BinaryData
- .fromString(
- "{\"hourlySchedule\":{\"snapshotsToKeep\":540761199,\"minute\":1878855914,\"usedBytes\":7872271488067797669},\"dailySchedule\":{\"snapshotsToKeep\":1470162172,\"hour\":1117825443,\"minute\":677878330,\"usedBytes\":2093041238668627370},\"weeklySchedule\":{\"snapshotsToKeep\":1188392360,\"day\":\"dzu\",\"hour\":566185577,\"minute\":1316965845,\"usedBytes\":5116891970547577634},\"monthlySchedule\":{\"snapshotsToKeep\":1008975068,\"daysOfMonth\":\"iwjmygtdssls\",\"hour\":464714758,\"minute\":478767297,\"usedBytes\":3503486836446743621},\"enabled\":true,\"provisioningState\":\"yqsemwa\"}")
- .toObject(SnapshotPolicyProperties.class);
- Assertions.assertEquals(540761199, model.hourlySchedule().snapshotsToKeep());
- Assertions.assertEquals(1878855914, model.hourlySchedule().minute());
- Assertions.assertEquals(7872271488067797669L, model.hourlySchedule().usedBytes());
- Assertions.assertEquals(1470162172, model.dailySchedule().snapshotsToKeep());
- Assertions.assertEquals(1117825443, model.dailySchedule().hour());
- Assertions.assertEquals(677878330, model.dailySchedule().minute());
- Assertions.assertEquals(2093041238668627370L, model.dailySchedule().usedBytes());
- Assertions.assertEquals(1188392360, model.weeklySchedule().snapshotsToKeep());
- Assertions.assertEquals("dzu", model.weeklySchedule().day());
- Assertions.assertEquals(566185577, model.weeklySchedule().hour());
- Assertions.assertEquals(1316965845, model.weeklySchedule().minute());
- Assertions.assertEquals(5116891970547577634L, model.weeklySchedule().usedBytes());
- Assertions.assertEquals(1008975068, model.monthlySchedule().snapshotsToKeep());
- Assertions.assertEquals("iwjmygtdssls", model.monthlySchedule().daysOfMonth());
- Assertions.assertEquals(464714758, model.monthlySchedule().hour());
- Assertions.assertEquals(478767297, model.monthlySchedule().minute());
- Assertions.assertEquals(3503486836446743621L, model.monthlySchedule().usedBytes());
- Assertions.assertEquals(true, model.enabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SnapshotPolicyProperties model =
- new SnapshotPolicyProperties()
- .withHourlySchedule(
- new HourlySchedule()
- .withSnapshotsToKeep(540761199)
- .withMinute(1878855914)
- .withUsedBytes(7872271488067797669L))
- .withDailySchedule(
- new DailySchedule()
- .withSnapshotsToKeep(1470162172)
- .withHour(1117825443)
- .withMinute(677878330)
- .withUsedBytes(2093041238668627370L))
- .withWeeklySchedule(
- new WeeklySchedule()
- .withSnapshotsToKeep(1188392360)
- .withDay("dzu")
- .withHour(566185577)
- .withMinute(1316965845)
- .withUsedBytes(5116891970547577634L))
- .withMonthlySchedule(
- new MonthlySchedule()
- .withSnapshotsToKeep(1008975068)
- .withDaysOfMonth("iwjmygtdssls")
- .withHour(464714758)
- .withMinute(478767297)
- .withUsedBytes(3503486836446743621L))
- .withEnabled(true);
- model = BinaryData.fromObject(model).toObject(SnapshotPolicyProperties.class);
- Assertions.assertEquals(540761199, model.hourlySchedule().snapshotsToKeep());
- Assertions.assertEquals(1878855914, model.hourlySchedule().minute());
- Assertions.assertEquals(7872271488067797669L, model.hourlySchedule().usedBytes());
- Assertions.assertEquals(1470162172, model.dailySchedule().snapshotsToKeep());
- Assertions.assertEquals(1117825443, model.dailySchedule().hour());
- Assertions.assertEquals(677878330, model.dailySchedule().minute());
- Assertions.assertEquals(2093041238668627370L, model.dailySchedule().usedBytes());
- Assertions.assertEquals(1188392360, model.weeklySchedule().snapshotsToKeep());
- Assertions.assertEquals("dzu", model.weeklySchedule().day());
- Assertions.assertEquals(566185577, model.weeklySchedule().hour());
- Assertions.assertEquals(1316965845, model.weeklySchedule().minute());
- Assertions.assertEquals(5116891970547577634L, model.weeklySchedule().usedBytes());
- Assertions.assertEquals(1008975068, model.monthlySchedule().snapshotsToKeep());
- Assertions.assertEquals("iwjmygtdssls", model.monthlySchedule().daysOfMonth());
- Assertions.assertEquals(464714758, model.monthlySchedule().hour());
- Assertions.assertEquals(478767297, model.monthlySchedule().minute());
- Assertions.assertEquals(3503486836446743621L, model.monthlySchedule().usedBytes());
- Assertions.assertEquals(true, model.enabled());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPropertiesTests.java
deleted file mode 100644
index af6f1b6e74b3..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPropertiesTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.SnapshotProperties;
-
-public final class SnapshotPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SnapshotProperties model =
- BinaryData
- .fromString(
- "{\"snapshotId\":\"sjyofdx\",\"created\":\"2021-11-05T14:56:24Z\",\"provisioningState\":\"dttouwaboekqvkel\"}")
- .toObject(SnapshotProperties.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SnapshotProperties model = new SnapshotProperties();
- model = BinaryData.fromObject(model).toObject(SnapshotProperties.class);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotRestoreFilesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotRestoreFilesTests.java
deleted file mode 100644
index 458508c7abdc..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotRestoreFilesTests.java
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class SnapshotRestoreFilesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SnapshotRestoreFiles model =
- BinaryData
- .fromString("{\"filePaths\":[\"mvb\"],\"destinationPath\":\"yjsflhhcaalnji\"}")
- .toObject(SnapshotRestoreFiles.class);
- Assertions.assertEquals("mvb", model.filePaths().get(0));
- Assertions.assertEquals("yjsflhhcaalnji", model.destinationPath());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SnapshotRestoreFiles model =
- new SnapshotRestoreFiles().withFilePaths(Arrays.asList("mvb")).withDestinationPath("yjsflhhcaalnji");
- model = BinaryData.fromObject(model).toObject(SnapshotRestoreFiles.class);
- Assertions.assertEquals("mvb", model.filePaths().get(0));
- Assertions.assertEquals("yjsflhhcaalnji", model.destinationPath());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java
deleted file mode 100644
index 46218e297413..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class SnapshotsDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .snapshots()
- .delete("jazysdzhezwwvaiq", "uvvfonkp", "hqyikvy", "auy", "vluwmncsttij", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.java
deleted file mode 100644
index afc8525c6b61..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.Snapshot;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class SnapshotsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"location\":\"wmmrq\",\"properties\":{\"snapshotId\":\"rjvpglydzgkrvqee\",\"created\":\"2021-04-21T12:17:49Z\",\"provisioningState\":\"pryu\"},\"id\":\"wytpzdmovz\",\"name\":\"fvaawzqa\",\"type\":\"f\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Snapshot response =
- manager
- .snapshots()
- .getWithResponse(
- "jlxr", "ilozapeewchpxlk", "wk", "ziycslevufuztck", "yhjtqedcgzu", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("wmmrq", response.location());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java
deleted file mode 100644
index bc2ee0847e66..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.Snapshot;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class SnapshotsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"location\":\"dwxf\",\"properties\":{\"snapshotId\":\"ivwzjbhyzs\",\"created\":\"2021-11-17T21:00:17Z\",\"provisioningState\":\"ambtrnegvm\"},\"id\":\"uqeqv\",\"name\":\"dspastjbkkdmfl\",\"type\":\"est\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.snapshots().list("ajlyjtlvofqzhv", "cib", "fmo", "uxrkjp", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("dwxf", response.iterator().next().location());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListTests.java
deleted file mode 100644
index 1f73ad3a46e3..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListTests.java
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.SnapshotInner;
-import com.azure.resourcemanager.netapp.models.SnapshotsList;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class SnapshotsListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SnapshotsList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"location\":\"gjrwjueiotwmcdyt\",\"properties\":{\"snapshotId\":\"it\",\"created\":\"2021-05-14T21:36:27Z\",\"provisioningState\":\"awgqwgxhni\"},\"id\":\"x\",\"name\":\"bkpyc\",\"type\":\"klwndnhjdauwhv\"},{\"location\":\"l\",\"properties\":{\"snapshotId\":\"tdhxujznbmpowuwp\",\"created\":\"2021-07-21T15:39:33Z\",\"provisioningState\":\"veual\"},\"id\":\"j\",\"name\":\"khfxobbcswsrt\",\"type\":\"riplrbpbewtg\"},{\"location\":\"fgb\",\"properties\":{\"snapshotId\":\"wxzvlvqhjkb\",\"created\":\"2021-11-14T02:33:08Z\",\"provisioningState\":\"nmxiebwwaloayqc\"},\"id\":\"rtzju\",\"name\":\"gwyzm\",\"type\":\"txon\"},{\"location\":\"mtsavjcbpwxqp\",\"properties\":{\"snapshotId\":\"nftguvriuhpr\",\"created\":\"2021-02-04T08:02:16Z\",\"provisioningState\":\"vxqtayriwwroyqbe\"},\"id\":\"mcqibycnojv\",\"name\":\"nmefqsgzvahapj\",\"type\":\"zhpvgqzcjrvxd\"}]}")
- .toObject(SnapshotsList.class);
- Assertions.assertEquals("gjrwjueiotwmcdyt", model.value().get(0).location());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SnapshotsList model =
- new SnapshotsList()
- .withValue(
- Arrays
- .asList(
- new SnapshotInner().withLocation("gjrwjueiotwmcdyt"),
- new SnapshotInner().withLocation("l"),
- new SnapshotInner().withLocation("fgb"),
- new SnapshotInner().withLocation("mtsavjcbpwxqp")));
- model = BinaryData.fromObject(model).toObject(SnapshotsList.class);
- Assertions.assertEquals("gjrwjueiotwmcdyt", model.value().get(0).location());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java
deleted file mode 100644
index 1b7463f75bef..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class SnapshotsRestoreFilesMockTests {
- @Test
- public void testRestoreFiles() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .snapshots()
- .restoreFiles(
- "y",
- "vpo",
- "krsgsgb",
- "huzqgn",
- "dgkynscliqhzvhxn",
- new SnapshotRestoreFiles().withFilePaths(Arrays.asList("mtk", "bo")).withDestinationPath("pnvdxz"),
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateMockTests.java
deleted file mode 100644
index 2cabad2769fd..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateMockTests.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.Snapshot;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class SnapshotsUpdateMockTests {
- @Test
- public void testUpdate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"location\":\"wf\",\"properties\":{\"snapshotId\":\"b\",\"created\":\"2021-10-31T22:34:11Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"mdy\",\"name\":\"hdwdi\",\"type\":\"umbnraauzzp\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Snapshot response =
- manager
- .snapshots()
- .update(
- "gzuriglaecxndt",
- "cokpv",
- "mlqtmldgxob",
- "irclnpk",
- "iayz",
- "dataiykhy",
- com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("wf", response.location());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemInnerTests.java
deleted file mode 100644
index db8fd424690e..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemInnerTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner;
-
-public final class SubscriptionQuotaItemInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SubscriptionQuotaItemInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"current\":524649765,\"default\":1465460192},\"id\":\"ajrmvdjwzrlovmc\",\"name\":\"whijcoejctbza\",\"type\":\"s\"}")
- .toObject(SubscriptionQuotaItemInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SubscriptionQuotaItemInner model = new SubscriptionQuotaItemInner();
- model = BinaryData.fromObject(model).toObject(SubscriptionQuotaItemInner.class);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemListTests.java
deleted file mode 100644
index cd7fbc8ef70c..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemListTests.java
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner;
-import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItemList;
-import java.util.Arrays;
-
-public final class SubscriptionQuotaItemListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SubscriptionQuotaItemList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"current\":411376072,\"default\":187934940},\"id\":\"tjaodxobnb\",\"name\":\"xkqpxo\",\"type\":\"ajionpimexgstxg\"}]}")
- .toObject(SubscriptionQuotaItemList.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SubscriptionQuotaItemList model =
- new SubscriptionQuotaItemList().withValue(Arrays.asList(new SubscriptionQuotaItemInner()));
- model = BinaryData.fromObject(model).toObject(SubscriptionQuotaItemList.class);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemPropertiesTests.java
deleted file mode 100644
index 457ea969332c..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemPropertiesTests.java
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemProperties;
-
-public final class SubscriptionQuotaItemPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SubscriptionQuotaItemProperties model =
- BinaryData
- .fromString("{\"current\":169768909,\"default\":934868772}")
- .toObject(SubscriptionQuotaItemProperties.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SubscriptionQuotaItemProperties model = new SubscriptionQuotaItemProperties();
- model = BinaryData.fromObject(model).toObject(SubscriptionQuotaItemProperties.class);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeInfoInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeInfoInnerTests.java
deleted file mode 100644
index aabfa58ed293..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeInfoInnerTests.java
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner;
-import org.junit.jupiter.api.Assertions;
-
-public final class SubvolumeInfoInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SubvolumeInfoInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"path\":\"fq\",\"size\":3785815942098550285,\"parentPath\":\"htmdvy\",\"provisioningState\":\"ikdgszywkbir\"},\"id\":\"uzhlhkjoqrv\",\"name\":\"qaatjinrv\",\"type\":\"oupmfii\"}")
- .toObject(SubvolumeInfoInner.class);
- Assertions.assertEquals("fq", model.path());
- Assertions.assertEquals(3785815942098550285L, model.size());
- Assertions.assertEquals("htmdvy", model.parentPath());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SubvolumeInfoInner model =
- new SubvolumeInfoInner().withPath("fq").withSize(3785815942098550285L).withParentPath("htmdvy");
- model = BinaryData.fromObject(model).toObject(SubvolumeInfoInner.class);
- Assertions.assertEquals("fq", model.path());
- Assertions.assertEquals(3785815942098550285L, model.size());
- Assertions.assertEquals("htmdvy", model.parentPath());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java
deleted file mode 100644
index 68d20b9e0660..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelInner;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-
-public final class SubvolumeModelInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SubvolumeModelInner model =
- BinaryData
- .fromString(
- "{\"id\":\"nhlmctlpdng\",\"name\":\"vgbmhr\",\"type\":\"kw\",\"properties\":{\"path\":\"jejveg\",\"parentPath\":\"bpnaixexccbdre\",\"size\":1689934225834062034,\"bytesUsed\":6384745428742694530,\"permissions\":\"rvqahqkghtpwi\",\"creationTimeStamp\":\"2021-03-19T04:26:57Z\",\"accessedTimeStamp\":\"2021-06-17T07:39:44Z\",\"modifiedTimeStamp\":\"2021-05-11T09:36:14Z\",\"changedTimeStamp\":\"2021-09-16T08:46:35Z\",\"provisioningState\":\"xzb\"}}")
- .toObject(SubvolumeModelInner.class);
- Assertions.assertEquals("jejveg", model.path());
- Assertions.assertEquals("bpnaixexccbdre", model.parentPath());
- Assertions.assertEquals(1689934225834062034L, model.size());
- Assertions.assertEquals(6384745428742694530L, model.bytesUsed());
- Assertions.assertEquals("rvqahqkghtpwi", model.permissions());
- Assertions.assertEquals(OffsetDateTime.parse("2021-03-19T04:26:57Z"), model.creationTimestamp());
- Assertions.assertEquals(OffsetDateTime.parse("2021-06-17T07:39:44Z"), model.accessedTimestamp());
- Assertions.assertEquals(OffsetDateTime.parse("2021-05-11T09:36:14Z"), model.modifiedTimestamp());
- Assertions.assertEquals(OffsetDateTime.parse("2021-09-16T08:46:35Z"), model.changedTimestamp());
- Assertions.assertEquals("xzb", model.provisioningState());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SubvolumeModelInner model =
- new SubvolumeModelInner()
- .withPath("jejveg")
- .withParentPath("bpnaixexccbdre")
- .withSize(1689934225834062034L)
- .withBytesUsed(6384745428742694530L)
- .withPermissions("rvqahqkghtpwi")
- .withCreationTimestamp(OffsetDateTime.parse("2021-03-19T04:26:57Z"))
- .withAccessedTimestamp(OffsetDateTime.parse("2021-06-17T07:39:44Z"))
- .withModifiedTimestamp(OffsetDateTime.parse("2021-05-11T09:36:14Z"))
- .withChangedTimestamp(OffsetDateTime.parse("2021-09-16T08:46:35Z"))
- .withProvisioningState("xzb");
- model = BinaryData.fromObject(model).toObject(SubvolumeModelInner.class);
- Assertions.assertEquals("jejveg", model.path());
- Assertions.assertEquals("bpnaixexccbdre", model.parentPath());
- Assertions.assertEquals(1689934225834062034L, model.size());
- Assertions.assertEquals(6384745428742694530L, model.bytesUsed());
- Assertions.assertEquals("rvqahqkghtpwi", model.permissions());
- Assertions.assertEquals(OffsetDateTime.parse("2021-03-19T04:26:57Z"), model.creationTimestamp());
- Assertions.assertEquals(OffsetDateTime.parse("2021-06-17T07:39:44Z"), model.accessedTimestamp());
- Assertions.assertEquals(OffsetDateTime.parse("2021-05-11T09:36:14Z"), model.modifiedTimestamp());
- Assertions.assertEquals(OffsetDateTime.parse("2021-09-16T08:46:35Z"), model.changedTimestamp());
- Assertions.assertEquals("xzb", model.provisioningState());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java
deleted file mode 100644
index effa6e78b63f..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelProperties;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-
-public final class SubvolumeModelPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SubvolumeModelProperties model =
- BinaryData
- .fromString(
- "{\"path\":\"oowvrv\",\"parentPath\":\"gjqppy\",\"size\":3299325825870738139,\"bytesUsed\":2863905998828514603,\"permissions\":\"yhgfipnsx\",\"creationTimeStamp\":\"2021-11-02T02:58:50Z\",\"accessedTimeStamp\":\"2021-10-27T14:15:12Z\",\"modifiedTimeStamp\":\"2020-12-24T09:43:24Z\",\"changedTimeStamp\":\"2021-04-17T18:50:11Z\",\"provisioningState\":\"reafxtsgumhjg\"}")
- .toObject(SubvolumeModelProperties.class);
- Assertions.assertEquals("oowvrv", model.path());
- Assertions.assertEquals("gjqppy", model.parentPath());
- Assertions.assertEquals(3299325825870738139L, model.size());
- Assertions.assertEquals(2863905998828514603L, model.bytesUsed());
- Assertions.assertEquals("yhgfipnsx", model.permissions());
- Assertions.assertEquals(OffsetDateTime.parse("2021-11-02T02:58:50Z"), model.creationTimestamp());
- Assertions.assertEquals(OffsetDateTime.parse("2021-10-27T14:15:12Z"), model.accessedTimestamp());
- Assertions.assertEquals(OffsetDateTime.parse("2020-12-24T09:43:24Z"), model.modifiedTimestamp());
- Assertions.assertEquals(OffsetDateTime.parse("2021-04-17T18:50:11Z"), model.changedTimestamp());
- Assertions.assertEquals("reafxtsgumhjg", model.provisioningState());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SubvolumeModelProperties model =
- new SubvolumeModelProperties()
- .withPath("oowvrv")
- .withParentPath("gjqppy")
- .withSize(3299325825870738139L)
- .withBytesUsed(2863905998828514603L)
- .withPermissions("yhgfipnsx")
- .withCreationTimestamp(OffsetDateTime.parse("2021-11-02T02:58:50Z"))
- .withAccessedTimestamp(OffsetDateTime.parse("2021-10-27T14:15:12Z"))
- .withModifiedTimestamp(OffsetDateTime.parse("2020-12-24T09:43:24Z"))
- .withChangedTimestamp(OffsetDateTime.parse("2021-04-17T18:50:11Z"))
- .withProvisioningState("reafxtsgumhjg");
- model = BinaryData.fromObject(model).toObject(SubvolumeModelProperties.class);
- Assertions.assertEquals("oowvrv", model.path());
- Assertions.assertEquals("gjqppy", model.parentPath());
- Assertions.assertEquals(3299325825870738139L, model.size());
- Assertions.assertEquals(2863905998828514603L, model.bytesUsed());
- Assertions.assertEquals("yhgfipnsx", model.permissions());
- Assertions.assertEquals(OffsetDateTime.parse("2021-11-02T02:58:50Z"), model.creationTimestamp());
- Assertions.assertEquals(OffsetDateTime.parse("2021-10-27T14:15:12Z"), model.accessedTimestamp());
- Assertions.assertEquals(OffsetDateTime.parse("2020-12-24T09:43:24Z"), model.modifiedTimestamp());
- Assertions.assertEquals(OffsetDateTime.parse("2021-04-17T18:50:11Z"), model.changedTimestamp());
- Assertions.assertEquals("reafxtsgumhjg", model.provisioningState());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java
deleted file mode 100644
index aeff1a422661..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.SubvolumePatchParams;
-import org.junit.jupiter.api.Assertions;
-
-public final class SubvolumePatchParamsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SubvolumePatchParams model =
- BinaryData
- .fromString("{\"size\":754056912237486709,\"path\":\"vwz\"}")
- .toObject(SubvolumePatchParams.class);
- Assertions.assertEquals(754056912237486709L, model.size());
- Assertions.assertEquals("vwz", model.path());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SubvolumePatchParams model = new SubvolumePatchParams().withSize(754056912237486709L).withPath("vwz");
- model = BinaryData.fromObject(model).toObject(SubvolumePatchParams.class);
- Assertions.assertEquals(754056912237486709L, model.size());
- Assertions.assertEquals("vwz", model.path());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java
deleted file mode 100644
index 9be40886a675..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.SubvolumePatchRequest;
-import org.junit.jupiter.api.Assertions;
-
-public final class SubvolumePatchRequestTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SubvolumePatchRequest model =
- BinaryData
- .fromString("{\"properties\":{\"size\":593391508400046676,\"path\":\"hbxvvyhgsopbyrqu\"}}")
- .toObject(SubvolumePatchRequest.class);
- Assertions.assertEquals(593391508400046676L, model.size());
- Assertions.assertEquals("hbxvvyhgsopbyrqu", model.path());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SubvolumePatchRequest model =
- new SubvolumePatchRequest().withSize(593391508400046676L).withPath("hbxvvyhgsopbyrqu");
- model = BinaryData.fromObject(model).toObject(SubvolumePatchRequest.class);
- Assertions.assertEquals(593391508400046676L, model.size());
- Assertions.assertEquals("hbxvvyhgsopbyrqu", model.path());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java
deleted file mode 100644
index 8c70278ea457..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.SubvolumeProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class SubvolumePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SubvolumeProperties model =
- BinaryData
- .fromString(
- "{\"path\":\"ggjioolvr\",\"size\":6372304417284094836,\"parentPath\":\"kkgll\",\"provisioningState\":\"jygvjayvbl\"}")
- .toObject(SubvolumeProperties.class);
- Assertions.assertEquals("ggjioolvr", model.path());
- Assertions.assertEquals(6372304417284094836L, model.size());
- Assertions.assertEquals("kkgll", model.parentPath());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SubvolumeProperties model =
- new SubvolumeProperties().withPath("ggjioolvr").withSize(6372304417284094836L).withParentPath("kkgll");
- model = BinaryData.fromObject(model).toObject(SubvolumeProperties.class);
- Assertions.assertEquals("ggjioolvr", model.path());
- Assertions.assertEquals(6372304417284094836L, model.size());
- Assertions.assertEquals("kkgll", model.parentPath());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java
deleted file mode 100644
index 18436b2be9e9..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.SubvolumeInfo;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class SubvolumesCreateMockTests {
- @Test
- public void testCreate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"path\":\"smfcttuxuuyilfl\",\"size\":8482081195442318888,\"parentPath\":\"vrehmrnjhvsujzt\",\"provisioningState\":\"Succeeded\"},\"id\":\"h\",\"name\":\"uunfprnjletlxsm\",\"type\":\"pddouifamowaziyn\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- SubvolumeInfo response =
- manager
- .subvolumes()
- .define("ra")
- .withExistingVolume("cng", "saasiixtmkzj", "kv", "irhgfgrwsdp")
- .withPath("zb")
- .withSize(3744331679575254783L)
- .withParentPath("ictc")
- .create();
-
- Assertions.assertEquals("smfcttuxuuyilfl", response.path());
- Assertions.assertEquals(8482081195442318888L, response.size());
- Assertions.assertEquals("vrehmrnjhvsujzt", response.parentPath());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java
deleted file mode 100644
index 1b6dbfb754ac..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class SubvolumesDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .subvolumes()
- .delete(
- "smgbzahgxqdl",
- "rtltla",
- "rltzkatbhjmz",
- "nbsoqeqalarv",
- "agunbtgfebw",
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java
deleted file mode 100644
index 44f55838155b..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.SubvolumeModel;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class SubvolumesGetMetadataMockTests {
- @Test
- public void testGetMetadata() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"id\":\"ytunlbfjkwr\",\"name\":\"nkqbhsyrq\",\"type\":\"jqhden\",\"properties\":{\"path\":\"l\",\"parentPath\":\"akdkifmjnnawtqab\",\"size\":5710243161782085788,\"bytesUsed\":1035962610522456238,\"permissions\":\"qoweyirdhl\",\"creationTimeStamp\":\"2021-10-24T15:23:04Z\",\"accessedTimeStamp\":\"2021-09-15T11:45:30Z\",\"modifiedTimeStamp\":\"2021-07-25T17:04:59Z\",\"changedTimeStamp\":\"2021-06-30T03:10:24Z\",\"provisioningState\":\"Succeeded\"}}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- SubvolumeModel response =
- manager
- .subvolumes()
- .getMetadata(
- "nbmhyree", "dzqavbpdqmjxlyyz", "lgouwtlmjj", "uojqt", "baxk", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("l", response.path());
- Assertions.assertEquals("akdkifmjnnawtqab", response.parentPath());
- Assertions.assertEquals(5710243161782085788L, response.size());
- Assertions.assertEquals(1035962610522456238L, response.bytesUsed());
- Assertions.assertEquals("qoweyirdhl", response.permissions());
- Assertions.assertEquals(OffsetDateTime.parse("2021-10-24T15:23:04Z"), response.creationTimestamp());
- Assertions.assertEquals(OffsetDateTime.parse("2021-09-15T11:45:30Z"), response.accessedTimestamp());
- Assertions.assertEquals(OffsetDateTime.parse("2021-07-25T17:04:59Z"), response.modifiedTimestamp());
- Assertions.assertEquals(OffsetDateTime.parse("2021-06-30T03:10:24Z"), response.changedTimestamp());
- Assertions.assertEquals("Succeeded", response.provisioningState());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java
deleted file mode 100644
index f48ef6345ec9..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.SubvolumeInfo;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class SubvolumesGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"path\":\"cjxgrytf\",\"size\":1937226933748144576,\"parentPath\":\"ilrmcaykggnox\",\"provisioningState\":\"t\"},\"id\":\"sxwpndfcpfnznthj\",\"name\":\"wkjaos\",\"type\":\"xuzvoamktcqi\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- SubvolumeInfo response =
- manager
- .subvolumes()
- .getWithResponse("g", "pnpbswveflocc", "rmozihmipgawt", "xp", "y", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("cjxgrytf", response.path());
- Assertions.assertEquals(1937226933748144576L, response.size());
- Assertions.assertEquals("ilrmcaykggnox", response.parentPath());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java
deleted file mode 100644
index 47361b4ee820..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.SubvolumeInfo;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class SubvolumesListByVolumeMockTests {
- @Test
- public void testListByVolume() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"path\":\"i\",\"size\":8841673596868858874,\"parentPath\":\"wmxqhndvnoamlds\",\"provisioningState\":\"aohdjh\"},\"id\":\"lzok\",\"name\":\"coxpelnjeta\",\"type\":\"ltsxoatf\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager
- .subvolumes()
- .listByVolume("ziqgfuh", "kzruswh", "hczznvf", "ycjsx", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("i", response.iterator().next().path());
- Assertions.assertEquals(8841673596868858874L, response.iterator().next().size());
- Assertions.assertEquals("wmxqhndvnoamlds", response.iterator().next().parentPath());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java
deleted file mode 100644
index 4ff839953323..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner;
-import com.azure.resourcemanager.netapp.models.SubvolumesList;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class SubvolumesListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SubvolumesList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"path\":\"elvezrypq\",\"size\":2764555725436180174,\"parentPath\":\"kerqwkyh\",\"provisioningState\":\"bopgxedkowepbqp\"},\"id\":\"fkbw\",\"name\":\"csnjvcdwxlpqekft\",\"type\":\"khtj\"}],\"nextLink\":\"i\"}")
- .toObject(SubvolumesList.class);
- Assertions.assertEquals("elvezrypq", model.value().get(0).path());
- Assertions.assertEquals(2764555725436180174L, model.value().get(0).size());
- Assertions.assertEquals("kerqwkyh", model.value().get(0).parentPath());
- Assertions.assertEquals("i", model.nextLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SubvolumesList model =
- new SubvolumesList()
- .withValue(
- Arrays
- .asList(
- new SubvolumeInfoInner()
- .withPath("elvezrypq")
- .withSize(2764555725436180174L)
- .withParentPath("kerqwkyh")))
- .withNextLink("i");
- model = BinaryData.fromObject(model).toObject(SubvolumesList.class);
- Assertions.assertEquals("elvezrypq", model.value().get(0).path());
- Assertions.assertEquals(2764555725436180174L, model.value().get(0).size());
- Assertions.assertEquals("kerqwkyh", model.value().get(0).parentPath());
- Assertions.assertEquals("i", model.nextLink());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java
deleted file mode 100644
index fdbcc778df4a..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.UserAssignedIdentity;
-
-public final class UserAssignedIdentityTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- UserAssignedIdentity model =
- BinaryData
- .fromString(
- "{\"principalId\":\"50b2753d-620a-468a-8f8c-7b34ab4ac85e\",\"clientId\":\"e3964be5-e0d2-498d-bbf6-bea7ded58949\"}")
- .toObject(UserAssignedIdentity.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- UserAssignedIdentity model = new UserAssignedIdentity();
- model = BinaryData.fromObject(model).toObject(UserAssignedIdentity.class);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupPropertiesTests.java
deleted file mode 100644
index c893fdfe0956..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupPropertiesTests.java
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.VolumeBackupProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class VolumeBackupPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- VolumeBackupProperties model =
- BinaryData
- .fromString("{\"backupPolicyId\":\"utrc\",\"policyEnforced\":false,\"backupEnabled\":true}")
- .toObject(VolumeBackupProperties.class);
- Assertions.assertEquals("utrc", model.backupPolicyId());
- Assertions.assertEquals(false, model.policyEnforced());
- Assertions.assertEquals(true, model.backupEnabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- VolumeBackupProperties model =
- new VolumeBackupProperties().withBackupPolicyId("utrc").withPolicyEnforced(false).withBackupEnabled(true);
- model = BinaryData.fromObject(model).toObject(VolumeBackupProperties.class);
- Assertions.assertEquals("utrc", model.backupPolicyId());
- Assertions.assertEquals(false, model.policyEnforced());
- Assertions.assertEquals(true, model.backupEnabled());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupsTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupsTests.java
deleted file mode 100644
index 69a19c00e9bb..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupsTests.java
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.VolumeBackups;
-import org.junit.jupiter.api.Assertions;
-
-public final class VolumeBackupsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- VolumeBackups model =
- BinaryData
- .fromString("{\"volumeName\":\"vdkcrodtj\",\"backupsCount\":321367930,\"policyEnabled\":true}")
- .toObject(VolumeBackups.class);
- Assertions.assertEquals("vdkcrodtj", model.volumeName());
- Assertions.assertEquals(321367930, model.backupsCount());
- Assertions.assertEquals(true, model.policyEnabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- VolumeBackups model =
- new VolumeBackups().withVolumeName("vdkcrodtj").withBackupsCount(321367930).withPolicyEnabled(true);
- model = BinaryData.fromObject(model).toObject(VolumeBackups.class);
- Assertions.assertEquals("vdkcrodtj", model.volumeName());
- Assertions.assertEquals(321367930, model.backupsCount());
- Assertions.assertEquals(true, model.policyEnabled());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupDetailsInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupDetailsInnerTests.java
deleted file mode 100644
index 41d5f33d1782..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupDetailsInnerTests.java
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner;
-import com.azure.resourcemanager.netapp.models.ApplicationType;
-import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata;
-import com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class VolumeGroupDetailsInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- VolumeGroupDetailsInner model =
- BinaryData
- .fromString(
- "{\"location\":\"euyowqkd\",\"id\":\"t\",\"name\":\"ib\",\"type\":\"cgpik\",\"properties\":{\"provisioningState\":\"mejzanlfzxia\",\"groupMetaData\":{\"groupDescription\":\"bzonok\",\"applicationType\":\"SAP-HANA\",\"applicationIdentifier\":\"q\",\"globalPlacementRules\":[],\"deploymentSpecId\":\"zpfrla\",\"volumesCount\":4530556699982687099},\"volumes\":[{\"name\":\"ylwbtlhflsjcdhsz\",\"tags\":{},\"id\":\"pwp\",\"type\":\"jvfbgofelja\"},{\"name\":\"ueluqhhahhxvrhmz\",\"tags\":{},\"id\":\"nalghfkvtvsexso\",\"type\":\"wpjgwws\"}]}}")
- .toObject(VolumeGroupDetailsInner.class);
- Assertions.assertEquals("euyowqkd", model.location());
- Assertions.assertEquals("bzonok", model.groupMetadata().groupDescription());
- Assertions.assertEquals(ApplicationType.SAP_HANA, model.groupMetadata().applicationType());
- Assertions.assertEquals("q", model.groupMetadata().applicationIdentifier());
- Assertions.assertEquals("zpfrla", model.groupMetadata().deploymentSpecId());
- Assertions.assertEquals("ylwbtlhflsjcdhsz", model.volumes().get(0).name());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- VolumeGroupDetailsInner model =
- new VolumeGroupDetailsInner()
- .withLocation("euyowqkd")
- .withGroupMetadata(
- new VolumeGroupMetadata()
- .withGroupDescription("bzonok")
- .withApplicationType(ApplicationType.SAP_HANA)
- .withApplicationIdentifier("q")
- .withGlobalPlacementRules(Arrays.asList())
- .withDeploymentSpecId("zpfrla"))
- .withVolumes(
- Arrays
- .asList(
- new VolumeGroupVolumeProperties().withName("ylwbtlhflsjcdhsz").withTags(mapOf()),
- new VolumeGroupVolumeProperties().withName("ueluqhhahhxvrhmz").withTags(mapOf())));
- model = BinaryData.fromObject(model).toObject(VolumeGroupDetailsInner.class);
- Assertions.assertEquals("euyowqkd", model.location());
- Assertions.assertEquals("bzonok", model.groupMetadata().groupDescription());
- Assertions.assertEquals(ApplicationType.SAP_HANA, model.groupMetadata().applicationType());
- Assertions.assertEquals("q", model.groupMetadata().applicationIdentifier());
- Assertions.assertEquals("zpfrla", model.groupMetadata().deploymentSpecId());
- Assertions.assertEquals("ylwbtlhflsjcdhsz", model.volumes().get(0).name());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupInnerTests.java
deleted file mode 100644
index 241071d845f7..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupInnerTests.java
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupInner;
-import com.azure.resourcemanager.netapp.models.ApplicationType;
-import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class VolumeGroupInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- VolumeGroupInner model =
- BinaryData
- .fromString(
- "{\"location\":\"cizsjqlhkrribdei\",\"id\":\"ipqkghvxndzwm\",\"name\":\"efajpj\",\"type\":\"wkqnyhg\",\"properties\":{\"provisioningState\":\"tjivfxzsjabib\",\"groupMetaData\":{\"groupDescription\":\"tawfsdjpvkvp\",\"applicationType\":\"SAP-HANA\",\"applicationIdentifier\":\"kzbzkdvncjabudu\",\"globalPlacementRules\":[],\"deploymentSpecId\":\"kmokz\",\"volumesCount\":2248907093975297235}}}")
- .toObject(VolumeGroupInner.class);
- Assertions.assertEquals("cizsjqlhkrribdei", model.location());
- Assertions.assertEquals("tawfsdjpvkvp", model.groupMetadata().groupDescription());
- Assertions.assertEquals(ApplicationType.SAP_HANA, model.groupMetadata().applicationType());
- Assertions.assertEquals("kzbzkdvncjabudu", model.groupMetadata().applicationIdentifier());
- Assertions.assertEquals("kmokz", model.groupMetadata().deploymentSpecId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- VolumeGroupInner model =
- new VolumeGroupInner()
- .withLocation("cizsjqlhkrribdei")
- .withGroupMetadata(
- new VolumeGroupMetadata()
- .withGroupDescription("tawfsdjpvkvp")
- .withApplicationType(ApplicationType.SAP_HANA)
- .withApplicationIdentifier("kzbzkdvncjabudu")
- .withGlobalPlacementRules(Arrays.asList())
- .withDeploymentSpecId("kmokz"));
- model = BinaryData.fromObject(model).toObject(VolumeGroupInner.class);
- Assertions.assertEquals("cizsjqlhkrribdei", model.location());
- Assertions.assertEquals("tawfsdjpvkvp", model.groupMetadata().groupDescription());
- Assertions.assertEquals(ApplicationType.SAP_HANA, model.groupMetadata().applicationType());
- Assertions.assertEquals("kzbzkdvncjabudu", model.groupMetadata().applicationIdentifier());
- Assertions.assertEquals("kmokz", model.groupMetadata().deploymentSpecId());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupListTests.java
deleted file mode 100644
index 688580b4fed5..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupListTests.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupInner;
-import com.azure.resourcemanager.netapp.models.VolumeGroupList;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class VolumeGroupListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- VolumeGroupList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"location\":\"stvlzywemhzrnc\",\"id\":\"tclusiypbsfgy\",\"name\":\"uslfead\",\"type\":\"gq\",\"properties\":{\"provisioningState\":\"hejhzisx\"}},{\"location\":\"elolppvksrpqvuj\",\"id\":\"aehtwd\",\"name\":\"ftswibyrcdlbhsh\",\"type\":\"p\",\"properties\":{\"provisioningState\":\"stwit\"}},{\"location\":\"evxccedcp\",\"id\":\"dyodnwzxltj\",\"name\":\"nhltiugcxn\",\"type\":\"vwxqibyqunyo\",\"properties\":{\"provisioningState\":\"lmdjrkvfgbvfvpdb\"}}]}")
- .toObject(VolumeGroupList.class);
- Assertions.assertEquals("stvlzywemhzrnc", model.value().get(0).location());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- VolumeGroupList model =
- new VolumeGroupList()
- .withValue(
- Arrays
- .asList(
- new VolumeGroupInner().withLocation("stvlzywemhzrnc"),
- new VolumeGroupInner().withLocation("elolppvksrpqvuj"),
- new VolumeGroupInner().withLocation("evxccedcp")));
- model = BinaryData.fromObject(model).toObject(VolumeGroupList.class);
- Assertions.assertEquals("stvlzywemhzrnc", model.value().get(0).location());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java
deleted file mode 100644
index 4a829840f83f..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumeGroupsDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.volumeGroups().delete("uxlxqzvners", "ycucrwnamikzeb", "qbsms", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetWithResponseMockTests.java
deleted file mode 100644
index 99017e80e60f..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.ApplicationType;
-import com.azure.resourcemanager.netapp.models.VolumeGroupDetails;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumeGroupsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"location\":\"ehkfkimrtixok\",\"id\":\"qyinl\",\"name\":\"epqw\",\"type\":\"xmonstshi\",\"properties\":{\"provisioningState\":\"velfcldu\",\"groupMetaData\":{\"groupDescription\":\"irdsvuwcob\",\"applicationType\":\"SAP-HANA\",\"applicationIdentifier\":\"tmninw\",\"globalPlacementRules\":[],\"deploymentSpecId\":\"cilnghgshejjt\",\"volumesCount\":1841698857513805001},\"volumes\":[]}}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- VolumeGroupDetails response =
- manager
- .volumeGroups()
- .getWithResponse("ujgicgaaoe", "ttaqutdew", "mxswvruunzz", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("ehkfkimrtixok", response.location());
- Assertions.assertEquals("irdsvuwcob", response.groupMetadata().groupDescription());
- Assertions.assertEquals(ApplicationType.SAP_HANA, response.groupMetadata().applicationType());
- Assertions.assertEquals("tmninw", response.groupMetadata().applicationIdentifier());
- Assertions.assertEquals("cilnghgshejjt", response.groupMetadata().deploymentSpecId());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountMockTests.java
deleted file mode 100644
index 0babf7917062..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountMockTests.java
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.ApplicationType;
-import com.azure.resourcemanager.netapp.models.VolumeGroup;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumeGroupsListByNetAppAccountMockTests {
- @Test
- public void testListByNetAppAccount() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"location\":\"sihclafzvaylp\",\"id\":\"sqqw\",\"name\":\"cmwqkchcxwa\",\"type\":\"ewzjkjexfd\",\"properties\":{\"provisioningState\":\"hpsylkksh\",\"groupMetaData\":{\"groupDescription\":\"f\",\"applicationType\":\"SAP-HANA\",\"applicationIdentifier\":\"zjrgyww\",\"globalPlacementRules\":[],\"deploymentSpecId\":\"xs\",\"volumesCount\":1807969898585209027}}}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.volumeGroups().listByNetAppAccount("wl", "xjwet", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("sihclafzvaylp", response.iterator().next().location());
- Assertions.assertEquals("f", response.iterator().next().groupMetadata().groupDescription());
- Assertions.assertEquals(ApplicationType.SAP_HANA, response.iterator().next().groupMetadata().applicationType());
- Assertions.assertEquals("zjrgyww", response.iterator().next().groupMetadata().applicationIdentifier());
- Assertions.assertEquals("xs", response.iterator().next().groupMetadata().deploymentSpecId());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesDataProtectionTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesDataProtectionTests.java
deleted file mode 100644
index 00703459161d..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesDataProtectionTests.java
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.VolumeBackupProperties;
-import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection;
-import com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class VolumePatchPropertiesDataProtectionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- VolumePatchPropertiesDataProtection model =
- BinaryData
- .fromString(
- "{\"backup\":{\"backupPolicyId\":\"hckfrlhrx\",\"policyEnforced\":false,\"backupEnabled\":true},\"snapshot\":{\"snapshotPolicyId\":\"ca\"}}")
- .toObject(VolumePatchPropertiesDataProtection.class);
- Assertions.assertEquals("hckfrlhrx", model.backup().backupPolicyId());
- Assertions.assertEquals(false, model.backup().policyEnforced());
- Assertions.assertEquals(true, model.backup().backupEnabled());
- Assertions.assertEquals("ca", model.snapshot().snapshotPolicyId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- VolumePatchPropertiesDataProtection model =
- new VolumePatchPropertiesDataProtection()
- .withBackup(
- new VolumeBackupProperties()
- .withBackupPolicyId("hckfrlhrx")
- .withPolicyEnforced(false)
- .withBackupEnabled(true))
- .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("ca"));
- model = BinaryData.fromObject(model).toObject(VolumePatchPropertiesDataProtection.class);
- Assertions.assertEquals("hckfrlhrx", model.backup().backupPolicyId());
- Assertions.assertEquals(false, model.backup().policyEnforced());
- Assertions.assertEquals(true, model.backup().backupEnabled());
- Assertions.assertEquals("ca", model.snapshot().snapshotPolicyId());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesExportPolicyTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesExportPolicyTests.java
deleted file mode 100644
index fd8a8703e681..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesExportPolicyTests.java
+++ /dev/null
@@ -1,127 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.ChownMode;
-import com.azure.resourcemanager.netapp.models.ExportPolicyRule;
-import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class VolumePatchPropertiesExportPolicyTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- VolumePatchPropertiesExportPolicy model =
- BinaryData
- .fromString(
- "{\"rules\":[{\"ruleIndex\":1309356083,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":false,\"cifs\":false,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"tyfjfcnjbkcnxdhb\",\"hasRootAccess\":true,\"chownMode\":\"Restricted\"},{\"ruleIndex\":789098072,\"unixReadOnly\":false,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":false,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":true,\"allowedClients\":\"rpabg\",\"hasRootAccess\":false,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":1974668378,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":true,\"cifs\":false,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"ids\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":1361175767,\"unixReadOnly\":true,\"unixReadWrite\":false,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":true,\"cifs\":false,\"nfsv3\":true,\"nfsv41\":false,\"allowedClients\":\"vwfudwpzntxhd\",\"hasRootAccess\":true,\"chownMode\":\"Restricted\"}]}")
- .toObject(VolumePatchPropertiesExportPolicy.class);
- Assertions.assertEquals(1309356083, model.rules().get(0).ruleIndex());
- Assertions.assertEquals(false, model.rules().get(0).unixReadOnly());
- Assertions.assertEquals(true, model.rules().get(0).unixReadWrite());
- Assertions.assertEquals(false, model.rules().get(0).kerberos5ReadOnly());
- Assertions.assertEquals(false, model.rules().get(0).kerberos5ReadWrite());
- Assertions.assertEquals(true, model.rules().get(0).kerberos5IReadOnly());
- Assertions.assertEquals(false, model.rules().get(0).kerberos5IReadWrite());
- Assertions.assertEquals(true, model.rules().get(0).kerberos5PReadOnly());
- Assertions.assertEquals(false, model.rules().get(0).kerberos5PReadWrite());
- Assertions.assertEquals(false, model.rules().get(0).cifs());
- Assertions.assertEquals(true, model.rules().get(0).nfsv3());
- Assertions.assertEquals(true, model.rules().get(0).nfsv41());
- Assertions.assertEquals("tyfjfcnjbkcnxdhb", model.rules().get(0).allowedClients());
- Assertions.assertEquals(true, model.rules().get(0).hasRootAccess());
- Assertions.assertEquals(ChownMode.RESTRICTED, model.rules().get(0).chownMode());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- VolumePatchPropertiesExportPolicy model =
- new VolumePatchPropertiesExportPolicy()
- .withRules(
- Arrays
- .asList(
- new ExportPolicyRule()
- .withRuleIndex(1309356083)
- .withUnixReadOnly(false)
- .withUnixReadWrite(true)
- .withKerberos5ReadOnly(false)
- .withKerberos5ReadWrite(false)
- .withKerberos5IReadOnly(true)
- .withKerberos5IReadWrite(false)
- .withKerberos5PReadOnly(true)
- .withKerberos5PReadWrite(false)
- .withCifs(false)
- .withNfsv3(true)
- .withNfsv41(true)
- .withAllowedClients("tyfjfcnjbkcnxdhb")
- .withHasRootAccess(true)
- .withChownMode(ChownMode.RESTRICTED),
- new ExportPolicyRule()
- .withRuleIndex(789098072)
- .withUnixReadOnly(false)
- .withUnixReadWrite(false)
- .withKerberos5ReadOnly(true)
- .withKerberos5ReadWrite(false)
- .withKerberos5IReadOnly(true)
- .withKerberos5IReadWrite(false)
- .withKerberos5PReadOnly(false)
- .withKerberos5PReadWrite(false)
- .withCifs(false)
- .withNfsv3(false)
- .withNfsv41(true)
- .withAllowedClients("rpabg")
- .withHasRootAccess(false)
- .withChownMode(ChownMode.UNRESTRICTED),
- new ExportPolicyRule()
- .withRuleIndex(1974668378)
- .withUnixReadOnly(false)
- .withUnixReadWrite(true)
- .withKerberos5ReadOnly(true)
- .withKerberos5ReadWrite(false)
- .withKerberos5IReadOnly(false)
- .withKerberos5IReadWrite(false)
- .withKerberos5PReadOnly(false)
- .withKerberos5PReadWrite(true)
- .withCifs(false)
- .withNfsv3(true)
- .withNfsv41(true)
- .withAllowedClients("ids")
- .withHasRootAccess(true)
- .withChownMode(ChownMode.UNRESTRICTED),
- new ExportPolicyRule()
- .withRuleIndex(1361175767)
- .withUnixReadOnly(true)
- .withUnixReadWrite(false)
- .withKerberos5ReadOnly(false)
- .withKerberos5ReadWrite(false)
- .withKerberos5IReadOnly(true)
- .withKerberos5IReadWrite(true)
- .withKerberos5PReadOnly(false)
- .withKerberos5PReadWrite(true)
- .withCifs(false)
- .withNfsv3(true)
- .withNfsv41(false)
- .withAllowedClients("vwfudwpzntxhd")
- .withHasRootAccess(true)
- .withChownMode(ChownMode.RESTRICTED)));
- model = BinaryData.fromObject(model).toObject(VolumePatchPropertiesExportPolicy.class);
- Assertions.assertEquals(1309356083, model.rules().get(0).ruleIndex());
- Assertions.assertEquals(false, model.rules().get(0).unixReadOnly());
- Assertions.assertEquals(true, model.rules().get(0).unixReadWrite());
- Assertions.assertEquals(false, model.rules().get(0).kerberos5ReadOnly());
- Assertions.assertEquals(false, model.rules().get(0).kerberos5ReadWrite());
- Assertions.assertEquals(true, model.rules().get(0).kerberos5IReadOnly());
- Assertions.assertEquals(false, model.rules().get(0).kerberos5IReadWrite());
- Assertions.assertEquals(true, model.rules().get(0).kerberos5PReadOnly());
- Assertions.assertEquals(false, model.rules().get(0).kerberos5PReadWrite());
- Assertions.assertEquals(false, model.rules().get(0).cifs());
- Assertions.assertEquals(true, model.rules().get(0).nfsv3());
- Assertions.assertEquals(true, model.rules().get(0).nfsv41());
- Assertions.assertEquals("tyfjfcnjbkcnxdhb", model.rules().get(0).allowedClients());
- Assertions.assertEquals(true, model.rules().get(0).hasRootAccess());
- Assertions.assertEquals(ChownMode.RESTRICTED, model.rules().get(0).chownMode());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesTests.java
deleted file mode 100644
index 94ad848f1c0d..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesTests.java
+++ /dev/null
@@ -1,145 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.VolumePatchProperties;
-import com.azure.resourcemanager.netapp.models.ChownMode;
-import com.azure.resourcemanager.netapp.models.ExportPolicyRule;
-import com.azure.resourcemanager.netapp.models.ServiceLevel;
-import com.azure.resourcemanager.netapp.models.VolumeBackupProperties;
-import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection;
-import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy;
-import com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class VolumePatchPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- VolumePatchProperties model =
- BinaryData
- .fromString(
- "{\"serviceLevel\":\"Standard\",\"usageThreshold\":2795086805451114111,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":1557005906,\"unixReadOnly\":true,\"unixReadWrite\":false,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":false,\"cifs\":false,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"mkfssxqukkfplgm\",\"hasRootAccess\":true,\"chownMode\":\"Restricted\"},{\"ruleIndex\":543946486,\"unixReadOnly\":false,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":false,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"aiuebbaumnyqu\",\"hasRootAccess\":false,\"chownMode\":\"Unrestricted\"}]},\"throughputMibps\":60.13314,\"dataProtection\":{\"backup\":{\"backupPolicyId\":\"khsmtxpsiebt\",\"policyEnforced\":true,\"backupEnabled\":false},\"snapshot\":{\"snapshotPolicyId\":\"pskrdqmh\"}},\"isDefaultQuotaEnabled\":true,\"defaultUserQuotaInKiBs\":3744961131672427134,\"defaultGroupQuotaInKiBs\":2973722017967146384,\"unixPermissions\":\"zxuutkncwscwsvl\",\"coolAccess\":false,\"coolnessPeriod\":143506612}")
- .toObject(VolumePatchProperties.class);
- Assertions.assertEquals(ServiceLevel.STANDARD, model.serviceLevel());
- Assertions.assertEquals(2795086805451114111L, model.usageThreshold());
- Assertions.assertEquals(1557005906, model.exportPolicy().rules().get(0).ruleIndex());
- Assertions.assertEquals(true, model.exportPolicy().rules().get(0).unixReadOnly());
- Assertions.assertEquals(false, model.exportPolicy().rules().get(0).unixReadWrite());
- Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5ReadOnly());
- Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5ReadWrite());
- Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5IReadOnly());
- Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5IReadWrite());
- Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5PReadOnly());
- Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5PReadWrite());
- Assertions.assertEquals(false, model.exportPolicy().rules().get(0).cifs());
- Assertions.assertEquals(true, model.exportPolicy().rules().get(0).nfsv3());
- Assertions.assertEquals(true, model.exportPolicy().rules().get(0).nfsv41());
- Assertions.assertEquals("mkfssxqukkfplgm", model.exportPolicy().rules().get(0).allowedClients());
- Assertions.assertEquals(true, model.exportPolicy().rules().get(0).hasRootAccess());
- Assertions.assertEquals(ChownMode.RESTRICTED, model.exportPolicy().rules().get(0).chownMode());
- Assertions.assertEquals(60.13314F, model.throughputMibps());
- Assertions.assertEquals("khsmtxpsiebt", model.dataProtection().backup().backupPolicyId());
- Assertions.assertEquals(true, model.dataProtection().backup().policyEnforced());
- Assertions.assertEquals(false, model.dataProtection().backup().backupEnabled());
- Assertions.assertEquals("pskrdqmh", model.dataProtection().snapshot().snapshotPolicyId());
- Assertions.assertEquals(true, model.isDefaultQuotaEnabled());
- Assertions.assertEquals(3744961131672427134L, model.defaultUserQuotaInKiBs());
- Assertions.assertEquals(2973722017967146384L, model.defaultGroupQuotaInKiBs());
- Assertions.assertEquals("zxuutkncwscwsvl", model.unixPermissions());
- Assertions.assertEquals(false, model.coolAccess());
- Assertions.assertEquals(143506612, model.coolnessPeriod());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- VolumePatchProperties model =
- new VolumePatchProperties()
- .withServiceLevel(ServiceLevel.STANDARD)
- .withUsageThreshold(2795086805451114111L)
- .withExportPolicy(
- new VolumePatchPropertiesExportPolicy()
- .withRules(
- Arrays
- .asList(
- new ExportPolicyRule()
- .withRuleIndex(1557005906)
- .withUnixReadOnly(true)
- .withUnixReadWrite(false)
- .withKerberos5ReadOnly(false)
- .withKerberos5ReadWrite(false)
- .withKerberos5IReadOnly(true)
- .withKerberos5IReadWrite(true)
- .withKerberos5PReadOnly(true)
- .withKerberos5PReadWrite(false)
- .withCifs(false)
- .withNfsv3(true)
- .withNfsv41(true)
- .withAllowedClients("mkfssxqukkfplgm")
- .withHasRootAccess(true)
- .withChownMode(ChownMode.RESTRICTED),
- new ExportPolicyRule()
- .withRuleIndex(543946486)
- .withUnixReadOnly(false)
- .withUnixReadWrite(false)
- .withKerberos5ReadOnly(true)
- .withKerberos5ReadWrite(false)
- .withKerberos5IReadOnly(false)
- .withKerberos5IReadWrite(false)
- .withKerberos5PReadOnly(false)
- .withKerberos5PReadWrite(false)
- .withCifs(false)
- .withNfsv3(false)
- .withNfsv41(false)
- .withAllowedClients("aiuebbaumnyqu")
- .withHasRootAccess(false)
- .withChownMode(ChownMode.UNRESTRICTED))))
- .withThroughputMibps(60.13314F)
- .withDataProtection(
- new VolumePatchPropertiesDataProtection()
- .withBackup(
- new VolumeBackupProperties()
- .withBackupPolicyId("khsmtxpsiebt")
- .withPolicyEnforced(true)
- .withBackupEnabled(false))
- .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("pskrdqmh")))
- .withIsDefaultQuotaEnabled(true)
- .withDefaultUserQuotaInKiBs(3744961131672427134L)
- .withDefaultGroupQuotaInKiBs(2973722017967146384L)
- .withUnixPermissions("zxuutkncwscwsvl")
- .withCoolAccess(false)
- .withCoolnessPeriod(143506612);
- model = BinaryData.fromObject(model).toObject(VolumePatchProperties.class);
- Assertions.assertEquals(ServiceLevel.STANDARD, model.serviceLevel());
- Assertions.assertEquals(2795086805451114111L, model.usageThreshold());
- Assertions.assertEquals(1557005906, model.exportPolicy().rules().get(0).ruleIndex());
- Assertions.assertEquals(true, model.exportPolicy().rules().get(0).unixReadOnly());
- Assertions.assertEquals(false, model.exportPolicy().rules().get(0).unixReadWrite());
- Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5ReadOnly());
- Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5ReadWrite());
- Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5IReadOnly());
- Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5IReadWrite());
- Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5PReadOnly());
- Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5PReadWrite());
- Assertions.assertEquals(false, model.exportPolicy().rules().get(0).cifs());
- Assertions.assertEquals(true, model.exportPolicy().rules().get(0).nfsv3());
- Assertions.assertEquals(true, model.exportPolicy().rules().get(0).nfsv41());
- Assertions.assertEquals("mkfssxqukkfplgm", model.exportPolicy().rules().get(0).allowedClients());
- Assertions.assertEquals(true, model.exportPolicy().rules().get(0).hasRootAccess());
- Assertions.assertEquals(ChownMode.RESTRICTED, model.exportPolicy().rules().get(0).chownMode());
- Assertions.assertEquals(60.13314F, model.throughputMibps());
- Assertions.assertEquals("khsmtxpsiebt", model.dataProtection().backup().backupPolicyId());
- Assertions.assertEquals(true, model.dataProtection().backup().policyEnforced());
- Assertions.assertEquals(false, model.dataProtection().backup().backupEnabled());
- Assertions.assertEquals("pskrdqmh", model.dataProtection().snapshot().snapshotPolicyId());
- Assertions.assertEquals(true, model.isDefaultQuotaEnabled());
- Assertions.assertEquals(3744961131672427134L, model.defaultUserQuotaInKiBs());
- Assertions.assertEquals(2973722017967146384L, model.defaultGroupQuotaInKiBs());
- Assertions.assertEquals("zxuutkncwscwsvl", model.unixPermissions());
- Assertions.assertEquals(false, model.coolAccess());
- Assertions.assertEquals(143506612, model.coolnessPeriod());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchTests.java
deleted file mode 100644
index d23616c7dd71..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchTests.java
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.ServiceLevel;
-import com.azure.resourcemanager.netapp.models.VolumePatch;
-import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection;
-import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class VolumePatchTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- VolumePatch model =
- BinaryData
- .fromString(
- "{\"properties\":{\"serviceLevel\":\"Premium\",\"usageThreshold\":798754251901632491,\"exportPolicy\":{\"rules\":[]},\"throughputMibps\":49.891884,\"dataProtection\":{},\"isDefaultQuotaEnabled\":false,\"defaultUserQuotaInKiBs\":8279092425079677109,\"defaultGroupQuotaInKiBs\":8739681618516710945,\"unixPermissions\":\"nyyazttbtwwrqpue\",\"coolAccess\":false,\"coolnessPeriod\":1525019471},\"location\":\"wbiexzfey\",\"tags\":{\"zyoxaepdkzjan\":\"xibxujwbhqwalm\",\"hdwbavxbniwdjs\":\"ux\"},\"id\":\"zt\",\"name\":\"dbpgnxytxhp\",\"type\":\"xbzpfzab\"}")
- .toObject(VolumePatch.class);
- Assertions.assertEquals("wbiexzfey", model.location());
- Assertions.assertEquals("xibxujwbhqwalm", model.tags().get("zyoxaepdkzjan"));
- Assertions.assertEquals(ServiceLevel.PREMIUM, model.serviceLevel());
- Assertions.assertEquals(798754251901632491L, model.usageThreshold());
- Assertions.assertEquals(49.891884F, model.throughputMibps());
- Assertions.assertEquals(false, model.isDefaultQuotaEnabled());
- Assertions.assertEquals(8279092425079677109L, model.defaultUserQuotaInKiBs());
- Assertions.assertEquals(8739681618516710945L, model.defaultGroupQuotaInKiBs());
- Assertions.assertEquals("nyyazttbtwwrqpue", model.unixPermissions());
- Assertions.assertEquals(false, model.coolAccess());
- Assertions.assertEquals(1525019471, model.coolnessPeriod());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- VolumePatch model =
- new VolumePatch()
- .withLocation("wbiexzfey")
- .withTags(mapOf("zyoxaepdkzjan", "xibxujwbhqwalm", "hdwbavxbniwdjs", "ux"))
- .withServiceLevel(ServiceLevel.PREMIUM)
- .withUsageThreshold(798754251901632491L)
- .withExportPolicy(new VolumePatchPropertiesExportPolicy().withRules(Arrays.asList()))
- .withThroughputMibps(49.891884F)
- .withDataProtection(new VolumePatchPropertiesDataProtection())
- .withIsDefaultQuotaEnabled(false)
- .withDefaultUserQuotaInKiBs(8279092425079677109L)
- .withDefaultGroupQuotaInKiBs(8739681618516710945L)
- .withUnixPermissions("nyyazttbtwwrqpue")
- .withCoolAccess(false)
- .withCoolnessPeriod(1525019471);
- model = BinaryData.fromObject(model).toObject(VolumePatch.class);
- Assertions.assertEquals("wbiexzfey", model.location());
- Assertions.assertEquals("xibxujwbhqwalm", model.tags().get("zyoxaepdkzjan"));
- Assertions.assertEquals(ServiceLevel.PREMIUM, model.serviceLevel());
- Assertions.assertEquals(798754251901632491L, model.usageThreshold());
- Assertions.assertEquals(49.891884F, model.throughputMibps());
- Assertions.assertEquals(false, model.isDefaultQuotaEnabled());
- Assertions.assertEquals(8279092425079677109L, model.defaultUserQuotaInKiBs());
- Assertions.assertEquals(8739681618516710945L, model.defaultGroupQuotaInKiBs());
- Assertions.assertEquals("nyyazttbtwwrqpue", model.unixPermissions());
- Assertions.assertEquals(false, model.coolAccess());
- Assertions.assertEquals(1525019471, model.coolnessPeriod());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesDataProtectionTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesDataProtectionTests.java
deleted file mode 100644
index 9526aefdeb2d..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesDataProtectionTests.java
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.EndpointType;
-import com.azure.resourcemanager.netapp.models.ReplicationObject;
-import com.azure.resourcemanager.netapp.models.ReplicationSchedule;
-import com.azure.resourcemanager.netapp.models.VolumeBackupProperties;
-import com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection;
-import com.azure.resourcemanager.netapp.models.VolumeRelocationProperties;
-import com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class VolumePropertiesDataProtectionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- VolumePropertiesDataProtection model =
- BinaryData
- .fromString(
- "{\"backup\":{\"backupPolicyId\":\"iw\",\"policyEnforced\":true,\"backupEnabled\":true},\"replication\":{\"replicationId\":\"zpuzycisp\",\"endpointType\":\"dst\",\"replicationSchedule\":\"daily\",\"remoteVolumeResourceId\":\"mgkbrpyydhibn\",\"remoteVolumeRegion\":\"qkpikadrgvtqagnb\"},\"snapshot\":{\"snapshotPolicyId\":\"hijggme\"},\"volumeRelocation\":{\"relocationRequested\":true,\"readyToBeFinalized\":false}}")
- .toObject(VolumePropertiesDataProtection.class);
- Assertions.assertEquals("iw", model.backup().backupPolicyId());
- Assertions.assertEquals(true, model.backup().policyEnforced());
- Assertions.assertEquals(true, model.backup().backupEnabled());
- Assertions.assertEquals("zpuzycisp", model.replication().replicationId());
- Assertions.assertEquals(EndpointType.DST, model.replication().endpointType());
- Assertions.assertEquals(ReplicationSchedule.DAILY, model.replication().replicationSchedule());
- Assertions.assertEquals("mgkbrpyydhibn", model.replication().remoteVolumeResourceId());
- Assertions.assertEquals("qkpikadrgvtqagnb", model.replication().remoteVolumeRegion());
- Assertions.assertEquals("hijggme", model.snapshot().snapshotPolicyId());
- Assertions.assertEquals(true, model.volumeRelocation().relocationRequested());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- VolumePropertiesDataProtection model =
- new VolumePropertiesDataProtection()
- .withBackup(
- new VolumeBackupProperties()
- .withBackupPolicyId("iw")
- .withPolicyEnforced(true)
- .withBackupEnabled(true))
- .withReplication(
- new ReplicationObject()
- .withReplicationId("zpuzycisp")
- .withEndpointType(EndpointType.DST)
- .withReplicationSchedule(ReplicationSchedule.DAILY)
- .withRemoteVolumeResourceId("mgkbrpyydhibn")
- .withRemoteVolumeRegion("qkpikadrgvtqagnb"))
- .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("hijggme"))
- .withVolumeRelocation(new VolumeRelocationProperties().withRelocationRequested(true));
- model = BinaryData.fromObject(model).toObject(VolumePropertiesDataProtection.class);
- Assertions.assertEquals("iw", model.backup().backupPolicyId());
- Assertions.assertEquals(true, model.backup().policyEnforced());
- Assertions.assertEquals(true, model.backup().backupEnabled());
- Assertions.assertEquals("zpuzycisp", model.replication().replicationId());
- Assertions.assertEquals(EndpointType.DST, model.replication().endpointType());
- Assertions.assertEquals(ReplicationSchedule.DAILY, model.replication().replicationSchedule());
- Assertions.assertEquals("mgkbrpyydhibn", model.replication().remoteVolumeResourceId());
- Assertions.assertEquals("qkpikadrgvtqagnb", model.replication().remoteVolumeRegion());
- Assertions.assertEquals("hijggme", model.snapshot().snapshotPolicyId());
- Assertions.assertEquals(true, model.volumeRelocation().relocationRequested());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesExportPolicyTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesExportPolicyTests.java
deleted file mode 100644
index de6c94706d2f..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesExportPolicyTests.java
+++ /dev/null
@@ -1,95 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.ChownMode;
-import com.azure.resourcemanager.netapp.models.ExportPolicyRule;
-import com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class VolumePropertiesExportPolicyTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- VolumePropertiesExportPolicy model =
- BinaryData
- .fromString(
- "{\"rules\":[{\"ruleIndex\":1492267323,\"unixReadOnly\":false,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":true,\"cifs\":true,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"kaet\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":1351604805,\"unixReadOnly\":true,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":false,\"cifs\":true,\"nfsv3\":false,\"nfsv41\":true,\"allowedClients\":\"fuwutttxf\",\"hasRootAccess\":false,\"chownMode\":\"Restricted\"}]}")
- .toObject(VolumePropertiesExportPolicy.class);
- Assertions.assertEquals(1492267323, model.rules().get(0).ruleIndex());
- Assertions.assertEquals(false, model.rules().get(0).unixReadOnly());
- Assertions.assertEquals(false, model.rules().get(0).unixReadWrite());
- Assertions.assertEquals(true, model.rules().get(0).kerberos5ReadOnly());
- Assertions.assertEquals(false, model.rules().get(0).kerberos5ReadWrite());
- Assertions.assertEquals(false, model.rules().get(0).kerberos5IReadOnly());
- Assertions.assertEquals(true, model.rules().get(0).kerberos5IReadWrite());
- Assertions.assertEquals(true, model.rules().get(0).kerberos5PReadOnly());
- Assertions.assertEquals(true, model.rules().get(0).kerberos5PReadWrite());
- Assertions.assertEquals(true, model.rules().get(0).cifs());
- Assertions.assertEquals(true, model.rules().get(0).nfsv3());
- Assertions.assertEquals(true, model.rules().get(0).nfsv41());
- Assertions.assertEquals("kaet", model.rules().get(0).allowedClients());
- Assertions.assertEquals(true, model.rules().get(0).hasRootAccess());
- Assertions.assertEquals(ChownMode.UNRESTRICTED, model.rules().get(0).chownMode());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- VolumePropertiesExportPolicy model =
- new VolumePropertiesExportPolicy()
- .withRules(
- Arrays
- .asList(
- new ExportPolicyRule()
- .withRuleIndex(1492267323)
- .withUnixReadOnly(false)
- .withUnixReadWrite(false)
- .withKerberos5ReadOnly(true)
- .withKerberos5ReadWrite(false)
- .withKerberos5IReadOnly(false)
- .withKerberos5IReadWrite(true)
- .withKerberos5PReadOnly(true)
- .withKerberos5PReadWrite(true)
- .withCifs(true)
- .withNfsv3(true)
- .withNfsv41(true)
- .withAllowedClients("kaet")
- .withHasRootAccess(true)
- .withChownMode(ChownMode.UNRESTRICTED),
- new ExportPolicyRule()
- .withRuleIndex(1351604805)
- .withUnixReadOnly(true)
- .withUnixReadWrite(true)
- .withKerberos5ReadOnly(true)
- .withKerberos5ReadWrite(true)
- .withKerberos5IReadOnly(true)
- .withKerberos5IReadWrite(true)
- .withKerberos5PReadOnly(true)
- .withKerberos5PReadWrite(false)
- .withCifs(true)
- .withNfsv3(false)
- .withNfsv41(true)
- .withAllowedClients("fuwutttxf")
- .withHasRootAccess(false)
- .withChownMode(ChownMode.RESTRICTED)));
- model = BinaryData.fromObject(model).toObject(VolumePropertiesExportPolicy.class);
- Assertions.assertEquals(1492267323, model.rules().get(0).ruleIndex());
- Assertions.assertEquals(false, model.rules().get(0).unixReadOnly());
- Assertions.assertEquals(false, model.rules().get(0).unixReadWrite());
- Assertions.assertEquals(true, model.rules().get(0).kerberos5ReadOnly());
- Assertions.assertEquals(false, model.rules().get(0).kerberos5ReadWrite());
- Assertions.assertEquals(false, model.rules().get(0).kerberos5IReadOnly());
- Assertions.assertEquals(true, model.rules().get(0).kerberos5IReadWrite());
- Assertions.assertEquals(true, model.rules().get(0).kerberos5PReadOnly());
- Assertions.assertEquals(true, model.rules().get(0).kerberos5PReadWrite());
- Assertions.assertEquals(true, model.rules().get(0).cifs());
- Assertions.assertEquals(true, model.rules().get(0).nfsv3());
- Assertions.assertEquals(true, model.rules().get(0).nfsv41());
- Assertions.assertEquals("kaet", model.rules().get(0).allowedClients());
- Assertions.assertEquals(true, model.rules().get(0).hasRootAccess());
- Assertions.assertEquals(ChownMode.UNRESTRICTED, model.rules().get(0).chownMode());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.java
deleted file mode 100644
index 647806200736..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.java
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRuleInner;
-import com.azure.resourcemanager.netapp.models.Type;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class VolumeQuotaRuleInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- VolumeQuotaRuleInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":3980349580525769162,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"akgtdlmkkzevdlh\"},\"location\":\"pusdstt\",\"tags\":{\"qmoa\":\"gvbbejdcng\",\"twaenuuzko\":\"ufgmjzrwrdg\",\"iefozbhdmsml\":\"bminrfdwoyuhhzi\"},\"id\":\"zqhof\",\"name\":\"rmaequ\",\"type\":\"ah\"}")
- .toObject(VolumeQuotaRuleInner.class);
- Assertions.assertEquals("pusdstt", model.location());
- Assertions.assertEquals("gvbbejdcng", model.tags().get("qmoa"));
- Assertions.assertEquals(3980349580525769162L, model.quotaSizeInKiBs());
- Assertions.assertEquals(Type.INDIVIDUAL_GROUP_QUOTA, model.quotaType());
- Assertions.assertEquals("akgtdlmkkzevdlh", model.quotaTarget());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- VolumeQuotaRuleInner model =
- new VolumeQuotaRuleInner()
- .withLocation("pusdstt")
- .withTags(mapOf("qmoa", "gvbbejdcng", "twaenuuzko", "ufgmjzrwrdg", "iefozbhdmsml", "bminrfdwoyuhhzi"))
- .withQuotaSizeInKiBs(3980349580525769162L)
- .withQuotaType(Type.INDIVIDUAL_GROUP_QUOTA)
- .withQuotaTarget("akgtdlmkkzevdlh");
- model = BinaryData.fromObject(model).toObject(VolumeQuotaRuleInner.class);
- Assertions.assertEquals("pusdstt", model.location());
- Assertions.assertEquals("gvbbejdcng", model.tags().get("qmoa"));
- Assertions.assertEquals(3980349580525769162L, model.quotaSizeInKiBs());
- Assertions.assertEquals(Type.INDIVIDUAL_GROUP_QUOTA, model.quotaType());
- Assertions.assertEquals("akgtdlmkkzevdlh", model.quotaTarget());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulePatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulePatchTests.java
deleted file mode 100644
index 21f4c51456b0..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulePatchTests.java
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.Type;
-import com.azure.resourcemanager.netapp.models.VolumeQuotaRulePatch;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class VolumeQuotaRulePatchTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- VolumeQuotaRulePatch model =
- BinaryData
- .fromString(
- "{\"tags\":{\"ph\":\"ylhalnswhcc\",\"gwol\":\"aivwitqscywu\",\"zbwemh\":\"h\",\"sbrgz\":\"i\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":6841623833142002976,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"dxggicccnxqhuexm\"}}")
- .toObject(VolumeQuotaRulePatch.class);
- Assertions.assertEquals("ylhalnswhcc", model.tags().get("ph"));
- Assertions.assertEquals(6841623833142002976L, model.quotaSizeInKiBs());
- Assertions.assertEquals(Type.INDIVIDUAL_USER_QUOTA, model.quotaType());
- Assertions.assertEquals("dxggicccnxqhuexm", model.quotaTarget());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- VolumeQuotaRulePatch model =
- new VolumeQuotaRulePatch()
- .withTags(mapOf("ph", "ylhalnswhcc", "gwol", "aivwitqscywu", "zbwemh", "h", "sbrgz", "i"))
- .withQuotaSizeInKiBs(6841623833142002976L)
- .withQuotaType(Type.INDIVIDUAL_USER_QUOTA)
- .withQuotaTarget("dxggicccnxqhuexm");
- model = BinaryData.fromObject(model).toObject(VolumeQuotaRulePatch.class);
- Assertions.assertEquals("ylhalnswhcc", model.tags().get("ph"));
- Assertions.assertEquals(6841623833142002976L, model.quotaSizeInKiBs());
- Assertions.assertEquals(Type.INDIVIDUAL_USER_QUOTA, model.quotaType());
- Assertions.assertEquals("dxggicccnxqhuexm", model.quotaTarget());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java
deleted file mode 100644
index dae3cc5b8b2e..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java
+++ /dev/null
@@ -1,94 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.Type;
-import com.azure.resourcemanager.netapp.models.VolumeQuotaRule;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumeQuotaRulesCreateMockTests {
- @Test
- public void testCreate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":3395635652856224250,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"edm\"},\"location\":\"kvnlvxbcuiiznkt\",\"tags\":{\"bmikost\":\"nsnvpd\",\"kiwbuqnyoph\":\"z\"},\"id\":\"fy\",\"name\":\"sgcrpfbcunezzce\",\"type\":\"elfwy\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- VolumeQuotaRule response =
- manager
- .volumeQuotaRules()
- .define("xfyqonmpqoxwdo")
- .withRegion("tmwwi")
- .withExistingVolume("mv", "fgtayxonsup", "ujlzqnhcvsqltn", "oibgsxg")
- .withTags(mapOf("bcblemb", "hfqpofv", "ihebwtsw", "kbwvqvxkdiv", "gegizvcjfel", "zuwfmdur"))
- .withQuotaSizeInKiBs(7955310418875154253L)
- .withQuotaType(Type.DEFAULT_GROUP_QUOTA)
- .withQuotaTarget("qbi")
- .create();
-
- Assertions.assertEquals("kvnlvxbcuiiznkt", response.location());
- Assertions.assertEquals("nsnvpd", response.tags().get("bmikost"));
- Assertions.assertEquals(3395635652856224250L, response.quotaSizeInKiBs());
- Assertions.assertEquals(Type.INDIVIDUAL_USER_QUOTA, response.quotaType());
- Assertions.assertEquals("edm", response.quotaTarget());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java
deleted file mode 100644
index d403f708de1d..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumeQuotaRulesDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .volumeQuotaRules()
- .delete(
- "haivm", "yasflvgsgzwy", "akoi", "knsmjblmljhlnymz", "tqyryuzcbmqqv", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java
deleted file mode 100644
index ad913c087792..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.Type;
-import com.azure.resourcemanager.netapp.models.VolumeQuotaRule;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumeQuotaRulesGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"provisioningState\":\"Deleting\",\"quotaSizeInKiBs\":7267482395817324073,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"qjujeickpzvcp\"},\"location\":\"mxelnwcltyjed\",\"tags\":{\"azuawx\":\"mlfmkqs\"},\"id\":\"z\",\"name\":\"puamwabzxr\",\"type\":\"xcushs\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- VolumeQuotaRule response =
- manager
- .volumeQuotaRules()
- .getWithResponse("jphslhcaw", "u", "i", "dwfmvigorqjb", "tzh", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("mxelnwcltyjed", response.location());
- Assertions.assertEquals("mlfmkqs", response.tags().get("azuawx"));
- Assertions.assertEquals(7267482395817324073L, response.quotaSizeInKiBs());
- Assertions.assertEquals(Type.INDIVIDUAL_GROUP_QUOTA, response.quotaType());
- Assertions.assertEquals("qjujeickpzvcp", response.quotaTarget());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java
deleted file mode 100644
index 9fd1c3058b39..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.Type;
-import com.azure.resourcemanager.netapp.models.VolumeQuotaRule;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumeQuotaRulesListByVolumeMockTests {
- @Test
- public void testListByVolume() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"provisioningState\":\"Creating\",\"quotaSizeInKiBs\":1005908306135997596,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"rd\"},\"location\":\"ovw\",\"tags\":{\"hv\":\"ptgoeiybbabp\",\"igjkskyrio\":\"slkvntjl\",\"mifrygznmma\":\"vzidsxwaab\"},\"id\":\"ri\",\"name\":\"kzobgopxlhsln\",\"type\":\"lxieixynllxecwcr\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager
- .volumeQuotaRules()
- .listByVolume("bjwgnyfus", "zsvtuikzhajqgl", "fh", "l", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("ovw", response.iterator().next().location());
- Assertions.assertEquals("ptgoeiybbabp", response.iterator().next().tags().get("hv"));
- Assertions.assertEquals(1005908306135997596L, response.iterator().next().quotaSizeInKiBs());
- Assertions.assertEquals(Type.INDIVIDUAL_USER_QUOTA, response.iterator().next().quotaType());
- Assertions.assertEquals("rd", response.iterator().next().quotaTarget());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java
deleted file mode 100644
index 156ea878a410..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRuleInner;
-import com.azure.resourcemanager.netapp.models.Type;
-import com.azure.resourcemanager.netapp.models.VolumeQuotaRulesList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class VolumeQuotaRulesListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- VolumeQuotaRulesList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"quotaSizeInKiBs\":5281574535669148481,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"f\"},\"location\":\"kgjubgdknnqvsazn\",\"tags\":{\"mkycgra\":\"orudsgsa\"},\"id\":\"wjue\",\"name\":\"aeburuvdmo\",\"type\":\"s\"},{\"properties\":{\"provisioningState\":\"Patching\",\"quotaSizeInKiBs\":1943240829085978893,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"efkifr\"},\"location\":\"puqujmqlgkfbtn\",\"tags\":{\"jitcjedftwwaez\":\"ongbjcnt\",\"i\":\"ojvdcpzfoqo\"},\"id\":\"ybxarzgszu\",\"name\":\"oxciqopidoamcio\",\"type\":\"hkh\"},{\"properties\":{\"provisioningState\":\"Patching\",\"quotaSizeInKiBs\":1835597225257472163,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"lwntoego\"},\"location\":\"wbw\",\"tags\":{\"cmrvexzt\":\"z\",\"gsfraoyzkoow\":\"bt\",\"aldsy\":\"lmnguxaw\"},\"id\":\"uximerqfobw\",\"name\":\"znkbykutwpfhpagm\",\"type\":\"r\"}]}")
- .toObject(VolumeQuotaRulesList.class);
- Assertions.assertEquals("kgjubgdknnqvsazn", model.value().get(0).location());
- Assertions.assertEquals("orudsgsa", model.value().get(0).tags().get("mkycgra"));
- Assertions.assertEquals(5281574535669148481L, model.value().get(0).quotaSizeInKiBs());
- Assertions.assertEquals(Type.INDIVIDUAL_GROUP_QUOTA, model.value().get(0).quotaType());
- Assertions.assertEquals("f", model.value().get(0).quotaTarget());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- VolumeQuotaRulesList model =
- new VolumeQuotaRulesList()
- .withValue(
- Arrays
- .asList(
- new VolumeQuotaRuleInner()
- .withLocation("kgjubgdknnqvsazn")
- .withTags(mapOf("mkycgra", "orudsgsa"))
- .withQuotaSizeInKiBs(5281574535669148481L)
- .withQuotaType(Type.INDIVIDUAL_GROUP_QUOTA)
- .withQuotaTarget("f"),
- new VolumeQuotaRuleInner()
- .withLocation("puqujmqlgkfbtn")
- .withTags(mapOf("jitcjedftwwaez", "ongbjcnt", "i", "ojvdcpzfoqo"))
- .withQuotaSizeInKiBs(1943240829085978893L)
- .withQuotaType(Type.DEFAULT_USER_QUOTA)
- .withQuotaTarget("efkifr"),
- new VolumeQuotaRuleInner()
- .withLocation("wbw")
- .withTags(mapOf("cmrvexzt", "z", "gsfraoyzkoow", "bt", "aldsy", "lmnguxaw"))
- .withQuotaSizeInKiBs(1835597225257472163L)
- .withQuotaType(Type.INDIVIDUAL_USER_QUOTA)
- .withQuotaTarget("lwntoego")));
- model = BinaryData.fromObject(model).toObject(VolumeQuotaRulesList.class);
- Assertions.assertEquals("kgjubgdknnqvsazn", model.value().get(0).location());
- Assertions.assertEquals("orudsgsa", model.value().get(0).tags().get("mkycgra"));
- Assertions.assertEquals(5281574535669148481L, model.value().get(0).quotaSizeInKiBs());
- Assertions.assertEquals(Type.INDIVIDUAL_GROUP_QUOTA, model.value().get(0).quotaType());
- Assertions.assertEquals("f", model.value().get(0).quotaTarget());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java
deleted file mode 100644
index 1b23506f62ab..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRulesProperties;
-import com.azure.resourcemanager.netapp.models.Type;
-import org.junit.jupiter.api.Assertions;
-
-public final class VolumeQuotaRulesPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- VolumeQuotaRulesProperties model =
- BinaryData
- .fromString(
- "{\"provisioningState\":\"Moving\",\"quotaSizeInKiBs\":7362779030746859122,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"z\"}")
- .toObject(VolumeQuotaRulesProperties.class);
- Assertions.assertEquals(7362779030746859122L, model.quotaSizeInKiBs());
- Assertions.assertEquals(Type.INDIVIDUAL_USER_QUOTA, model.quotaType());
- Assertions.assertEquals("z", model.quotaTarget());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- VolumeQuotaRulesProperties model =
- new VolumeQuotaRulesProperties()
- .withQuotaSizeInKiBs(7362779030746859122L)
- .withQuotaType(Type.INDIVIDUAL_USER_QUOTA)
- .withQuotaTarget("z");
- model = BinaryData.fromObject(model).toObject(VolumeQuotaRulesProperties.class);
- Assertions.assertEquals(7362779030746859122L, model.quotaSizeInKiBs());
- Assertions.assertEquals(Type.INDIVIDUAL_USER_QUOTA, model.quotaType());
- Assertions.assertEquals("z", model.quotaTarget());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRelocationPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRelocationPropertiesTests.java
deleted file mode 100644
index 3a1f83d98451..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRelocationPropertiesTests.java
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.VolumeRelocationProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class VolumeRelocationPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- VolumeRelocationProperties model =
- BinaryData
- .fromString("{\"relocationRequested\":false,\"readyToBeFinalized\":true}")
- .toObject(VolumeRelocationProperties.class);
- Assertions.assertEquals(false, model.relocationRequested());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- VolumeRelocationProperties model = new VolumeRelocationProperties().withRelocationRequested(false);
- model = BinaryData.fromObject(model).toObject(VolumeRelocationProperties.class);
- Assertions.assertEquals(false, model.relocationRequested());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRevertTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRevertTests.java
deleted file mode 100644
index 2c69d100c20d..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRevertTests.java
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.VolumeRevert;
-import org.junit.jupiter.api.Assertions;
-
-public final class VolumeRevertTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- VolumeRevert model = BinaryData.fromString("{\"snapshotId\":\"z\"}").toObject(VolumeRevert.class);
- Assertions.assertEquals("z", model.snapshotId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- VolumeRevert model = new VolumeRevert().withSnapshotId("z");
- model = BinaryData.fromObject(model).toObject(VolumeRevert.class);
- Assertions.assertEquals("z", model.snapshotId());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeSnapshotPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeSnapshotPropertiesTests.java
deleted file mode 100644
index 3712d6d8569d..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeSnapshotPropertiesTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class VolumeSnapshotPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- VolumeSnapshotProperties model =
- BinaryData.fromString("{\"snapshotPolicyId\":\"nrs\"}").toObject(VolumeSnapshotProperties.class);
- Assertions.assertEquals("nrs", model.snapshotPolicyId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- VolumeSnapshotProperties model = new VolumeSnapshotProperties().withSnapshotPolicyId("nrs");
- model = BinaryData.fromObject(model).toObject(VolumeSnapshotProperties.class);
- Assertions.assertEquals("nrs", model.snapshotPolicyId());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationMockTests.java
deleted file mode 100644
index c3d20138550e..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationMockTests.java
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.AuthorizeRequest;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumesAuthorizeReplicationMockTests {
- @Test
- public void testAuthorizeReplication() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .volumes()
- .authorizeReplication(
- "ybfhjxa",
- "vvjgslor",
- "il",
- "yw",
- new AuthorizeRequest().withRemoteVolumeResourceId("kgkxn"),
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java
deleted file mode 100644
index 4f06325c8e7a..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumesBreakFileLocksMockTests {
- @Test
- public void testBreakFileLocks() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .volumes()
- .breakFileLocks(
- "ilbywdxsm",
- "ccwr",
- "fscjfnynszquji",
- "dvoqyt",
- new BreakFileLocksRequest().withClientIp("yo").withConfirmRunningDisruptiveOperation(true),
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java
deleted file mode 100644
index 760ff28916d4..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.BreakReplicationRequest;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumesBreakReplicationMockTests {
- @Test
- public void testBreakReplication() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .volumes()
- .breakReplication(
- "lgy",
- "vutpthjoxo",
- "smsks",
- "pi",
- new BreakReplicationRequest().withForceBreakReplication(false),
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java
deleted file mode 100644
index 7f6c0a7f495d..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumesDeleteReplicationMockTests {
- @Test
- public void testDeleteReplication() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .volumes()
- .deleteReplication("dmligovibrxk", "mloazuru", "cbgoor", "te", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java
deleted file mode 100644
index 977bd481dac6..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumesFinalizeRelocationMockTests {
- @Test
- public void testFinalizeRelocation() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.volumes().finalizeRelocation("stul", "qypfcv", "er", "hp", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java
deleted file mode 100644
index 1fa68313d292..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.EndpointType;
-import com.azure.resourcemanager.netapp.models.Replication;
-import com.azure.resourcemanager.netapp.models.ReplicationSchedule;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumesListReplicationsMockTests {
- @Test
- public void testListReplications() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"endpointType\":\"src\",\"replicationSchedule\":\"_10minutely\",\"remoteVolumeResourceId\":\"av\",\"remoteVolumeRegion\":\"qdzfvazivjlfrqtt\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager
- .volumes()
- .listReplications("tsttktlahbq", "ctxtgzukxi", "mmqtgqqqxhr", "xrxc", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals(EndpointType.SRC, response.iterator().next().endpointType());
- Assertions.assertEquals(ReplicationSchedule.ONE_ZEROMINUTELY, response.iterator().next().replicationSchedule());
- Assertions.assertEquals("av", response.iterator().next().remoteVolumeResourceId());
- Assertions.assertEquals("qdzfvazivjlfrqtt", response.iterator().next().remoteVolumeRegion());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeMockTests.java
deleted file mode 100644
index 80439d368efa..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeMockTests.java
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.PoolChangeRequest;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumesPoolChangeMockTests {
- @Test
- public void testPoolChange() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .volumes()
- .poolChange(
- "px",
- "wjplma",
- "stcyohpfkyrkdbd",
- "iogsjkmnwq",
- new PoolChangeRequest().withNewPoolResourceId("nobaiyhddviacegf"),
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java
deleted file mode 100644
index 1c01ea433195..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumesReInitializeReplicationMockTests {
- @Test
- public void testReInitializeReplication() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .volumes()
- .reInitializeReplication(
- "edabgyvudtjue", "bcihxuuwhc", "yxccyb", "payakkud", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java
deleted file mode 100644
index a7938d4195c3..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.MirrorState;
-import com.azure.resourcemanager.netapp.models.RelationshipStatus;
-import com.azure.resourcemanager.netapp.models.ReplicationStatus;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumesReplicationStatusWithResponseMockTests {
- @Test
- public void testReplicationStatusWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"healthy\":false,\"relationshipStatus\":\"Transferring\",\"mirrorState\":\"Mirrored\",\"totalProgress\":\"bkjubdyhgkfmins\",\"errorMessage\":\"wzf\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- ReplicationStatus response =
- manager
- .volumes()
- .replicationStatusWithResponse("oljxkcgx", "lxsffg", "vizqzdwl", "w", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(false, response.healthy());
- Assertions.assertEquals(RelationshipStatus.TRANSFERRING, response.relationshipStatus());
- Assertions.assertEquals(MirrorState.MIRRORED, response.mirrorState());
- Assertions.assertEquals("bkjubdyhgkfmins", response.totalProgress());
- Assertions.assertEquals("wzf", response.errorMessage());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordMockTests.java
deleted file mode 100644
index 5f5a2fa17f79..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordMockTests.java
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumesResetCifsPasswordMockTests {
- @Test
- public void testResetCifsPassword() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .volumes()
- .resetCifsPassword(
- "s", "gdotcubiipuipwo", "onmacjekniz", "hqvcimpevfgmblr", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java
deleted file mode 100644
index 9e4528ec0ed4..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumesResyncReplicationMockTests {
- @Test
- public void testResyncReplication() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.volumes().resyncReplication("ajlkatnw", "yiopi", "kqqfk", "vscx", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java
deleted file mode 100644
index 125dc0b31727..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import com.azure.resourcemanager.netapp.models.VolumeRevert;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumesRevertMockTests {
- @Test
- public void testRevert() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .volumes()
- .revert(
- "nnrwrbiork",
- "alywjhhgdn",
- "xmsivfomiloxggdu",
- "iqndieuzaofj",
- new VolumeRevert().withSnapshotId("vcyy"),
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java
deleted file mode 100644
index 3a15fcec7f84..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.netapp.NetAppFilesManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class VolumesRevertRelocationMockTests {
- @Test
- public void testRevertRelocation() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- NetAppFilesManager manager =
- NetAppFilesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .volumes()
- .revertRelocation("bm", "pjbabwidfc", "sspuunnoxyhkx", "qddrihpfhoqcaae", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/WeeklyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/WeeklyScheduleTests.java
deleted file mode 100644
index bbaa998e02ea..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/WeeklyScheduleTests.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.netapp.models.WeeklySchedule;
-import org.junit.jupiter.api.Assertions;
-
-public final class WeeklyScheduleTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- WeeklySchedule model =
- BinaryData
- .fromString(
- "{\"snapshotsToKeep\":523277944,\"day\":\"mwmbes\",\"hour\":1055481655,\"minute\":1383076937,\"usedBytes\":9162330639147377970}")
- .toObject(WeeklySchedule.class);
- Assertions.assertEquals(523277944, model.snapshotsToKeep());
- Assertions.assertEquals("mwmbes", model.day());
- Assertions.assertEquals(1055481655, model.hour());
- Assertions.assertEquals(1383076937, model.minute());
- Assertions.assertEquals(9162330639147377970L, model.usedBytes());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- WeeklySchedule model =
- new WeeklySchedule()
- .withSnapshotsToKeep(523277944)
- .withDay("mwmbes")
- .withHour(1055481655)
- .withMinute(1383076937)
- .withUsedBytes(9162330639147377970L);
- model = BinaryData.fromObject(model).toObject(WeeklySchedule.class);
- Assertions.assertEquals(523277944, model.snapshotsToKeep());
- Assertions.assertEquals("mwmbes", model.day());
- Assertions.assertEquals(1055481655, model.hour());
- Assertions.assertEquals(1383076937, model.minute());
- Assertions.assertEquals(9162330639147377970L, model.usedBytes());
- }
-}