diff --git a/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml b/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml
index 7c4b7f83b48e..565c01c73cb5 100755
--- a/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml
+++ b/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml
@@ -1951,6 +1951,10 @@
+
+
+
+
diff --git a/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/FunctionApp.java b/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/FunctionApp.java
index 3c98f2c7e3d3..11f868807689 100644
--- a/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/FunctionApp.java
+++ b/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/FunctionApp.java
@@ -9,8 +9,8 @@
import com.azure.management.resources.fluentcore.model.Creatable;
import com.azure.management.resources.fluentcore.model.Refreshable;
import com.azure.management.resources.fluentcore.model.Updatable;
-import com.azure.management.storage.StorageAccount;
-import com.azure.management.storage.StorageAccountSkuType;
+import com.azure.management.storage.models.StorageAccount;
+import com.azure.management.storage.models.StorageAccountSkuType;
import java.util.Map;
import reactor.core.publisher.Mono;
@@ -314,7 +314,7 @@ interface WithStorageAccount {
* @return the next stage of the definition
*/
@Deprecated
- WithCreate withNewStorageAccount(String name, com.azure.management.storage.SkuName sku);
+ WithCreate withNewStorageAccount(String name, com.azure.management.storage.models.SkuName sku);
/**
* Creates a new storage account to use for the function app.
@@ -654,7 +654,7 @@ interface WithStorageAccount {
* @return the next stage of the function app update
*/
@Deprecated
- Update withNewStorageAccount(String name, com.azure.management.storage.SkuName sku);
+ Update withNewStorageAccount(String name, com.azure.management.storage.models.SkuName sku);
/**
* Creates a new storage account to use for the function app.
diff --git a/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/implementation/AppServiceManager.java b/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/implementation/AppServiceManager.java
index b1740679a36b..2f9a0b5aa091 100644
--- a/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/implementation/AppServiceManager.java
+++ b/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/implementation/AppServiceManager.java
@@ -21,7 +21,7 @@
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.resources.fluentcore.utils.HttpPipelineProvider;
import com.azure.management.resources.fluentcore.utils.SdkContext;
-import com.azure.management.storage.implementation.StorageManager;
+import com.azure.management.storage.StorageManager;
/** Entry point to Azure storage resource management. */
public final class AppServiceManager extends Manager {
diff --git a/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/implementation/FunctionAppImpl.java b/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/implementation/FunctionAppImpl.java
index b794874f54b5..79a6f9cf2222 100644
--- a/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/implementation/FunctionAppImpl.java
+++ b/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/implementation/FunctionAppImpl.java
@@ -38,9 +38,9 @@
import com.azure.management.appservice.models.SiteLogsConfigInner;
import com.azure.management.resources.fluentcore.model.Creatable;
import com.azure.management.resources.fluentcore.model.Indexable;
-import com.azure.management.storage.StorageAccount;
-import com.azure.management.storage.StorageAccountKey;
-import com.azure.management.storage.StorageAccountSkuType;
+import com.azure.management.storage.models.StorageAccount;
+import com.azure.management.storage.models.StorageAccountKey;
+import com.azure.management.storage.models.StorageAccountSkuType;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.File;
import java.io.IOException;
@@ -297,7 +297,7 @@ private FunctionAppImpl autoSetAlwaysOn(PricingTier pricingTier) {
}
@Override
- public FunctionAppImpl withNewStorageAccount(String name, com.azure.management.storage.SkuName sku) {
+ public FunctionAppImpl withNewStorageAccount(String name, com.azure.management.storage.models.SkuName sku) {
StorageAccount.DefinitionStages.WithGroup storageDefine =
manager().storageManager().storageAccounts().define(name).withRegion(regionName());
if (super.creatableGroup != null && isInCreateMode()) {
@@ -639,7 +639,7 @@ public Flux createAsync() {
if (currentStorageAccount == null && storageAccountToSet == null && storageAccountCreatable == null) {
withNewStorageAccount(
this.manager().sdkContext().randomResourceName(name(), 20),
- com.azure.management.storage.SkuName.STANDARD_GRS);
+ com.azure.management.storage.models.SkuName.STANDARD_GRS);
}
}
return super.createAsync();
diff --git a/sdk/appservice/mgmt/src/test/java/com/azure/management/appservice/FunctionAppsTests.java b/sdk/appservice/mgmt/src/test/java/com/azure/management/appservice/FunctionAppsTests.java
index 67512f0b957f..8ece1e7fa2c5 100644
--- a/sdk/appservice/mgmt/src/test/java/com/azure/management/appservice/FunctionAppsTests.java
+++ b/sdk/appservice/mgmt/src/test/java/com/azure/management/appservice/FunctionAppsTests.java
@@ -10,9 +10,9 @@
import com.azure.management.resources.fluentcore.arm.Region;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.resources.fluentcore.utils.SdkContext;
-import com.azure.management.storage.StorageAccount;
-import com.azure.management.storage.StorageAccountSkuType;
-import com.azure.management.storage.implementation.StorageManager;
+import com.azure.management.storage.models.StorageAccount;
+import com.azure.management.storage.models.StorageAccountSkuType;
+import com.azure.management.storage.StorageManager;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/Disk.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/Disk.java
index cc0a5f0f9d97..4440ca96e3ca 100644
--- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/Disk.java
+++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/Disk.java
@@ -13,7 +13,7 @@
import com.azure.management.resources.fluentcore.model.Creatable;
import com.azure.management.resources.fluentcore.model.Refreshable;
import com.azure.management.resources.fluentcore.model.Updatable;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import java.util.Set;
import reactor.core.publisher.Mono;
diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/VirtualMachine.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/VirtualMachine.java
index f3bd615d0975..d0c35170caf9 100644
--- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/VirtualMachine.java
+++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/VirtualMachine.java
@@ -20,7 +20,7 @@
import com.azure.management.resources.fluentcore.model.Creatable;
import com.azure.management.resources.fluentcore.model.Refreshable;
import com.azure.management.resources.fluentcore.model.Updatable;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import java.util.List;
import java.util.Map;
import java.util.Set;
diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/VirtualMachineScaleSet.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/VirtualMachineScaleSet.java
index c7166028274f..a28c97daaef3 100644
--- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/VirtualMachineScaleSet.java
+++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/VirtualMachineScaleSet.java
@@ -24,7 +24,7 @@
import com.azure.management.resources.fluentcore.model.Creatable;
import com.azure.management.resources.fluentcore.model.Refreshable;
import com.azure.management.resources.fluentcore.model.Updatable;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import reactor.core.publisher.Mono;
import java.io.IOException;
diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/ComputeManager.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/ComputeManager.java
index 45d577f67af8..e489f70e144c 100644
--- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/ComputeManager.java
+++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/ComputeManager.java
@@ -28,7 +28,7 @@
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.resources.fluentcore.utils.HttpPipelineProvider;
import com.azure.management.resources.fluentcore.utils.SdkContext;
-import com.azure.management.storage.implementation.StorageManager;
+import com.azure.management.storage.StorageManager;
/** Entry point to Azure compute resource management. */
public final class ComputeManager extends Manager {
diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/DiskImpl.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/DiskImpl.java
index dff07ef9ca07..eb4ff991faa9 100644
--- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/DiskImpl.java
+++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/DiskImpl.java
@@ -19,7 +19,7 @@
import com.azure.management.resources.fluentcore.arm.ResourceUtils;
import com.azure.management.resources.fluentcore.arm.models.implementation.GroupableResourceImpl;
import com.azure.management.resources.fluentcore.utils.Utils;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/UnmanagedDataDiskImpl.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/UnmanagedDataDiskImpl.java
index 510a650f3bf4..e91c26be2c2b 100644
--- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/UnmanagedDataDiskImpl.java
+++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/UnmanagedDataDiskImpl.java
@@ -12,7 +12,7 @@
import com.azure.management.compute.VirtualMachineUnmanagedDataDisk;
import com.azure.management.resources.fluentcore.arm.models.implementation.ChildResourceImpl;
import com.azure.management.resources.fluentcore.utils.Utils;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineImpl.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineImpl.java
index ee4258b7f845..1eb2c9d76e20 100644
--- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineImpl.java
+++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineImpl.java
@@ -73,8 +73,8 @@
import com.azure.management.resources.fluentcore.model.Creatable;
import com.azure.management.resources.fluentcore.utils.ResourceNamer;
import com.azure.management.resources.fluentcore.utils.Utils;
-import com.azure.management.storage.StorageAccount;
-import com.azure.management.storage.implementation.StorageManager;
+import com.azure.management.storage.models.StorageAccount;
+import com.azure.management.storage.StorageManager;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetImpl.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetImpl.java
index 0b1c64a721e1..1cb6aaff54c6 100644
--- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetImpl.java
+++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetImpl.java
@@ -77,8 +77,8 @@
import com.azure.management.resources.fluentcore.model.Creatable;
import com.azure.management.resources.fluentcore.utils.ResourceNamer;
import com.azure.management.resources.fluentcore.utils.Utils;
-import com.azure.management.storage.StorageAccount;
-import com.azure.management.storage.implementation.StorageManager;
+import com.azure.management.storage.models.StorageAccount;
+import com.azure.management.storage.StorageManager;
import reactor.core.Exceptions;
import reactor.core.publisher.Mono;
diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetsImpl.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetsImpl.java
index 5cdf5afa502b..52c3d0714508 100644
--- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetsImpl.java
+++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetsImpl.java
@@ -19,7 +19,7 @@
import com.azure.management.graphrbac.implementation.GraphRbacManager;
import com.azure.management.network.implementation.NetworkManager;
import com.azure.management.resources.fluentcore.arm.collection.implementation.TopLevelModifiableResourcesImpl;
-import com.azure.management.storage.implementation.StorageManager;
+import com.azure.management.storage.StorageManager;
import java.util.ArrayList;
import java.util.List;
import reactor.core.publisher.Mono;
diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachinesImpl.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachinesImpl.java
index 671427cc1b1f..0c0918ec11a9 100644
--- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachinesImpl.java
+++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachinesImpl.java
@@ -20,7 +20,7 @@
import com.azure.management.graphrbac.implementation.GraphRbacManager;
import com.azure.management.network.implementation.NetworkManager;
import com.azure.management.resources.fluentcore.arm.collection.implementation.TopLevelModifiableResourcesImpl;
-import com.azure.management.storage.implementation.StorageManager;
+import com.azure.management.storage.StorageManager;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.ArrayList;
diff --git a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/ComputeManagementTest.java b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/ComputeManagementTest.java
index 0f3f5d8008ab..8c0c3b3aadf0 100644
--- a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/ComputeManagementTest.java
+++ b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/ComputeManagementTest.java
@@ -19,7 +19,7 @@
import com.azure.management.resources.fluentcore.arm.Region;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.resources.implementation.ResourceManager;
-import com.azure.management.storage.implementation.StorageManager;
+import com.azure.management.storage.StorageManager;
import com.jcraft.jsch.JSch;
import com.jcraft.jsch.JSchException;
import java.io.IOException;
diff --git a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineBootDiagnosticsTests.java b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineBootDiagnosticsTests.java
index ccb657b2b0d6..eb4475695766 100644
--- a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineBootDiagnosticsTests.java
+++ b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineBootDiagnosticsTests.java
@@ -7,7 +7,7 @@
import com.azure.management.resources.fluentcore.arm.Region;
import com.azure.management.resources.fluentcore.model.Creatable;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
diff --git a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineCustomImageOperationsTest.java b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineCustomImageOperationsTest.java
index d7def390e163..effafde80c91 100644
--- a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineCustomImageOperationsTest.java
+++ b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineCustomImageOperationsTest.java
@@ -9,7 +9,7 @@
import com.azure.management.resources.core.TestUtilities;
import com.azure.management.resources.fluentcore.arm.Region;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import java.io.IOException;
import java.util.Map;
import org.junit.jupiter.api.Assertions;
diff --git a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineExtensionOperationsTests.java b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineExtensionOperationsTests.java
index 2047c0ac48e4..9b4807132a4d 100644
--- a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineExtensionOperationsTests.java
+++ b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineExtensionOperationsTests.java
@@ -7,7 +7,7 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.management.resources.fluentcore.arm.Region;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.InputStream;
import java.util.ArrayList;
diff --git a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineManagedServiceIdentityOperationsTests.java b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineManagedServiceIdentityOperationsTests.java
index 1185fe306974..073a1b9471cb 100644
--- a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineManagedServiceIdentityOperationsTests.java
+++ b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineManagedServiceIdentityOperationsTests.java
@@ -12,7 +12,7 @@
import com.azure.management.resources.fluentcore.dag.TaskGroup;
import com.azure.management.resources.fluentcore.model.Indexable;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Flux;
diff --git a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineOperationsTests.java b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineOperationsTests.java
index cad6db130b66..2ff63e377552 100644
--- a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineOperationsTests.java
+++ b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineOperationsTests.java
@@ -19,8 +19,8 @@
import com.azure.management.resources.fluentcore.model.Creatable;
import com.azure.management.resources.fluentcore.model.CreatedResources;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
-import com.azure.management.storage.SkuName;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.SkuName;
+import com.azure.management.storage.models.StorageAccount;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
diff --git a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineRelatedResourcesDeletionTests.java b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineRelatedResourcesDeletionTests.java
index b8004d04257c..2364ce48a493 100644
--- a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineRelatedResourcesDeletionTests.java
+++ b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineRelatedResourcesDeletionTests.java
@@ -15,7 +15,7 @@
import com.azure.management.resources.fluentcore.arm.models.Resource;
import com.azure.management.resources.fluentcore.model.Creatable;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
diff --git a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineScaleSetBootDiagnosticsTests.java b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineScaleSetBootDiagnosticsTests.java
index 20264d702754..269b3e853f31 100644
--- a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineScaleSetBootDiagnosticsTests.java
+++ b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineScaleSetBootDiagnosticsTests.java
@@ -12,7 +12,7 @@
import com.azure.management.resources.fluentcore.arm.Region;
import com.azure.management.resources.fluentcore.model.Creatable;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import java.util.ArrayList;
import java.util.List;
import org.junit.jupiter.api.Assertions;
diff --git a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineScaleSetOperationsTests.java b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineScaleSetOperationsTests.java
index 7cfee8b490bb..21b68426dbcf 100644
--- a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineScaleSetOperationsTests.java
+++ b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineScaleSetOperationsTests.java
@@ -32,8 +32,8 @@
import com.azure.management.resources.fluentcore.arm.AvailabilityZoneId;
import com.azure.management.resources.fluentcore.arm.Region;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
-import com.azure.management.storage.StorageAccount;
-import com.azure.management.storage.StorageAccountKey;
+import com.azure.management.storage.models.StorageAccount;
+import com.azure.management.storage.models.StorageAccountKey;
import com.microsoft.azure.storage.CloudStorageAccount;
import com.microsoft.azure.storage.blob.CloudBlobClient;
import com.microsoft.azure.storage.blob.CloudBlobContainer;
diff --git a/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/Registry.java b/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/Registry.java
index 0894777775d5..7787e264845e 100644
--- a/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/Registry.java
+++ b/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/Registry.java
@@ -12,7 +12,7 @@
import com.azure.management.resources.fluentcore.model.Creatable;
import com.azure.management.resources.fluentcore.model.Refreshable;
import com.azure.management.resources.fluentcore.model.Updatable;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import java.time.OffsetDateTime;
import java.util.Collection;
import reactor.core.publisher.Mono;
diff --git a/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/ContainerRegistryManager.java b/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/ContainerRegistryManager.java
index cf277d45e0ff..f100dd024215 100644
--- a/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/ContainerRegistryManager.java
+++ b/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/ContainerRegistryManager.java
@@ -17,7 +17,7 @@
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.resources.fluentcore.utils.HttpPipelineProvider;
import com.azure.management.resources.fluentcore.utils.SdkContext;
-import com.azure.management.storage.implementation.StorageManager;
+import com.azure.management.storage.StorageManager;
/** Entry point to Azure container registry management. */
public final class ContainerRegistryManager
diff --git a/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistriesImpl.java b/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistriesImpl.java
index 5cd90baa498e..8bae7563cee5 100644
--- a/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistriesImpl.java
+++ b/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistriesImpl.java
@@ -18,7 +18,7 @@
import com.azure.management.containerregistry.models.RegistryUsageListResultInner;
import com.azure.management.resources.fluentcore.arm.collection.implementation.GroupableResourcesImpl;
import com.azure.management.resources.fluentcore.utils.PagedConverter;
-import com.azure.management.storage.implementation.StorageManager;
+import com.azure.management.storage.StorageManager;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
diff --git a/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistryImpl.java b/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistryImpl.java
index 0a3f8b7ac1ca..9fe46803c506 100644
--- a/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistryImpl.java
+++ b/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistryImpl.java
@@ -20,8 +20,8 @@
import com.azure.management.resources.fluentcore.arm.ResourceUtils;
import com.azure.management.resources.fluentcore.arm.models.implementation.GroupableResourceImpl;
import com.azure.management.resources.fluentcore.model.Creatable;
-import com.azure.management.storage.StorageAccount;
-import com.azure.management.storage.implementation.StorageManager;
+import com.azure.management.storage.models.StorageAccount;
+import com.azure.management.storage.StorageManager;
import java.time.OffsetDateTime;
import java.util.Collection;
import reactor.core.publisher.Mono;
diff --git a/sdk/management/azure/src/main/java/com/azure/management/Azure.java b/sdk/management/azure/src/main/java/com/azure/management/Azure.java
index e8176c49c600..407e623de5f7 100644
--- a/sdk/management/azure/src/main/java/com/azure/management/Azure.java
+++ b/sdk/management/azure/src/main/java/com/azure/management/Azure.java
@@ -89,13 +89,13 @@
import com.azure.management.resources.implementation.ResourceManager;
import com.azure.management.sql.SqlServers;
import com.azure.management.sql.implementation.SqlServerManager;
-import com.azure.management.storage.BlobContainers;
-import com.azure.management.storage.BlobServices;
-import com.azure.management.storage.ManagementPolicies;
-import com.azure.management.storage.StorageAccounts;
-import com.azure.management.storage.StorageSkus;
-import com.azure.management.storage.Usages;
-import com.azure.management.storage.implementation.StorageManager;
+import com.azure.management.storage.models.BlobContainers;
+import com.azure.management.storage.models.BlobServices;
+import com.azure.management.storage.models.ManagementPolicies;
+import com.azure.management.storage.models.StorageAccounts;
+import com.azure.management.storage.models.StorageSkus;
+import com.azure.management.storage.models.Usages;
+import com.azure.management.storage.StorageManager;
import java.util.Objects;
diff --git a/sdk/management/azure/src/test/java/com/azure/management/AzureTests.java b/sdk/management/azure/src/test/java/com/azure/management/AzureTests.java
index 022e093978b9..e554fa4fb7bc 100644
--- a/sdk/management/azure/src/test/java/com/azure/management/AzureTests.java
+++ b/sdk/management/azure/src/test/java/com/azure/management/AzureTests.java
@@ -43,8 +43,8 @@
import com.azure.management.resources.fluentcore.arm.Region;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.resources.fluentcore.utils.SdkContext;
-import com.azure.management.storage.SkuName;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.SkuName;
+import com.azure.management.storage.models.StorageAccount;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
diff --git a/sdk/management/azure/src/test/java/com/azure/management/TestNetworkWatcher.java b/sdk/management/azure/src/test/java/com/azure/management/TestNetworkWatcher.java
index daeb936f1dff..8b4d1f7b9355 100644
--- a/sdk/management/azure/src/test/java/com/azure/management/TestNetworkWatcher.java
+++ b/sdk/management/azure/src/test/java/com/azure/management/TestNetworkWatcher.java
@@ -18,8 +18,8 @@
import com.azure.management.resources.fluentcore.model.Creatable;
import com.azure.management.resources.fluentcore.model.CreatedResources;
import com.azure.management.resources.fluentcore.utils.SdkContext;
-import com.azure.management.storage.StorageAccount;
-import com.azure.management.storage.StorageAccounts;
+import com.azure.management.storage.models.StorageAccount;
+import com.azure.management.storage.models.StorageAccounts;
import java.util.ArrayList;
import java.util.List;
import org.junit.jupiter.api.Assertions;
diff --git a/sdk/management/azure/src/test/java/com/azure/management/TestResourceStreaming.java b/sdk/management/azure/src/test/java/com/azure/management/TestResourceStreaming.java
index 35829c30e941..64a8534ade3b 100644
--- a/sdk/management/azure/src/test/java/com/azure/management/TestResourceStreaming.java
+++ b/sdk/management/azure/src/test/java/com/azure/management/TestResourceStreaming.java
@@ -11,8 +11,8 @@
import com.azure.management.resources.fluentcore.arm.Region;
import com.azure.management.resources.fluentcore.arm.models.Resource;
import com.azure.management.resources.fluentcore.model.Creatable;
-import com.azure.management.storage.StorageAccount;
-import com.azure.management.storage.StorageAccounts;
+import com.azure.management.storage.models.StorageAccount;
+import com.azure.management.storage.models.StorageAccounts;
import java.util.concurrent.atomic.AtomicInteger;
import org.junit.jupiter.api.Assertions;
diff --git a/sdk/management/azure/src/test/java/com/azure/management/VirtualNetworkGatewayTests.java b/sdk/management/azure/src/test/java/com/azure/management/VirtualNetworkGatewayTests.java
index 106d135d3c94..808d29d207b8 100644
--- a/sdk/management/azure/src/test/java/com/azure/management/VirtualNetworkGatewayTests.java
+++ b/sdk/management/azure/src/test/java/com/azure/management/VirtualNetworkGatewayTests.java
@@ -13,7 +13,7 @@
import com.azure.management.resources.fluentcore.arm.Region;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.resources.fluentcore.utils.SdkContext;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
diff --git a/sdk/management/gulpfile.js b/sdk/management/gulpfile.js
index d363414edea1..3653f75e101d 100644
--- a/sdk/management/gulpfile.js
+++ b/sdk/management/gulpfile.js
@@ -126,7 +126,7 @@ function codegen(project, cb) {
cmd = autoRestExe + ' ' + readmeFile +
' --java ' +
' --azure-arm ' +
- ' --track1-naming --generate-client-as-impl --implementation-subpackage=models --sync-methods=all --required-parameter-client-methods --add-context-parameter --context-client-method-parameter --client-side-validations --client-logger ' +
+ ' --track1-naming --implementation-subpackage=fluent --sync-methods=all --required-parameter-client-methods --add-context-parameter --context-client-method-parameter --client-side-validations --client-logger ' +
generator +
` --java.namespace=${mappings[project].package} ` +
` --java.output-folder=${outDir} ` +
diff --git a/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageLinuxFunctionAppSourceControl.java b/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageLinuxFunctionAppSourceControl.java
index 0ebed0d9708c..bfbcb8881533 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageLinuxFunctionAppSourceControl.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageLinuxFunctionAppSourceControl.java
@@ -14,7 +14,7 @@
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.resources.fluentcore.utils.SdkContext;
import com.azure.management.samples.Utils;
-import com.azure.management.storage.StorageAccountSkuType;
+import com.azure.management.storage.models.StorageAccountSkuType;
import com.azure.core.http.policy.HttpLogDetailLevel;
import org.apache.commons.lang.time.StopWatch;
diff --git a/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageLinuxWebAppStorageAccountConnection.java b/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageLinuxWebAppStorageAccountConnection.java
index c78f0926ad49..58218140b2df 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageLinuxWebAppStorageAccountConnection.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageLinuxWebAppStorageAccountConnection.java
@@ -16,7 +16,7 @@
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.resources.fluentcore.utils.SdkContext;
import com.azure.management.samples.Utils;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import com.azure.core.http.policy.HttpLogDetailLevel;
import com.azure.storage.blob.BlobClient;
import com.azure.storage.blob.BlobContainerClient;
diff --git a/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageWebAppStorageAccountConnection.java b/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageWebAppStorageAccountConnection.java
index 496a4e538b78..ae6fae7ee8dc 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageWebAppStorageAccountConnection.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageWebAppStorageAccountConnection.java
@@ -17,7 +17,7 @@
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.resources.fluentcore.utils.SdkContext;
import com.azure.management.samples.Utils;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import com.azure.core.http.policy.HttpLogDetailLevel;
import com.azure.storage.blob.BlobClient;
import com.azure.storage.blob.BlobContainerClient;
diff --git a/sdk/management/samples/src/main/java/com/azure/management/compute/samples/CreateVirtualMachinesInParallel.java b/sdk/management/samples/src/main/java/com/azure/management/compute/samples/CreateVirtualMachinesInParallel.java
index 5a2dc2c2b27f..3441d7ed6338 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/compute/samples/CreateVirtualMachinesInParallel.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/compute/samples/CreateVirtualMachinesInParallel.java
@@ -18,7 +18,7 @@
import com.azure.management.resources.fluentcore.model.Creatable;
import com.azure.management.resources.fluentcore.model.CreatedResources;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import org.apache.commons.lang.time.StopWatch;
import java.util.ArrayList;
diff --git a/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageResourceFromMSIEnabledVirtualMachineBelongsToAADGroup.java b/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageResourceFromMSIEnabledVirtualMachineBelongsToAADGroup.java
index 12537204b4fc..2a5043bc7ac4 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageResourceFromMSIEnabledVirtualMachineBelongsToAADGroup.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageResourceFromMSIEnabledVirtualMachineBelongsToAADGroup.java
@@ -19,7 +19,7 @@
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.resources.fluentcore.utils.SdkContext;
import com.azure.management.samples.Utils;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import java.util.ArrayList;
import java.util.List;
diff --git a/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageStorageFromMSIEnabledVirtualMachine.java b/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageStorageFromMSIEnabledVirtualMachine.java
index 86b4f33bfc1c..7c55ec813977 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageStorageFromMSIEnabledVirtualMachine.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageStorageFromMSIEnabledVirtualMachine.java
@@ -16,7 +16,7 @@
import com.azure.management.resources.fluentcore.arm.Region;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.samples.Utils;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import java.util.ArrayList;
import java.util.List;
diff --git a/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageVirtualMachinesInParallel.java b/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageVirtualMachinesInParallel.java
index e9e4749ef953..032cf1a0eda6 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageVirtualMachinesInParallel.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageVirtualMachinesInParallel.java
@@ -16,7 +16,7 @@
import com.azure.management.resources.fluentcore.arm.Region;
import com.azure.management.resources.fluentcore.model.Creatable;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import java.util.ArrayList;
import java.util.Collection;
diff --git a/sdk/management/samples/src/main/java/com/azure/management/monitor/samples/QueryMetricsAndActivityLogs.java b/sdk/management/samples/src/main/java/com/azure/management/monitor/samples/QueryMetricsAndActivityLogs.java
index 11d991e2ba40..2eb4b8fb1ad5 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/monitor/samples/QueryMetricsAndActivityLogs.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/monitor/samples/QueryMetricsAndActivityLogs.java
@@ -21,9 +21,9 @@
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.resources.fluentcore.utils.SdkContext;
import com.azure.management.samples.Utils;
-import com.azure.management.storage.AccessTier;
-import com.azure.management.storage.StorageAccount;
-import com.azure.management.storage.StorageAccountKey;
+import com.azure.management.storage.models.AccessTier;
+import com.azure.management.storage.models.StorageAccount;
+import com.azure.management.storage.models.StorageAccountKey;
import com.azure.storage.blob.BlobClient;
import com.azure.storage.blob.BlobContainerClient;
import com.azure.storage.blob.BlobContainerClientBuilder;
diff --git a/sdk/management/samples/src/main/java/com/azure/management/monitor/samples/SecurityBreachOrRiskActivityLogAlerts.java b/sdk/management/samples/src/main/java/com/azure/management/monitor/samples/SecurityBreachOrRiskActivityLogAlerts.java
index bf883402be0a..a07dca0d033e 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/monitor/samples/SecurityBreachOrRiskActivityLogAlerts.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/monitor/samples/SecurityBreachOrRiskActivityLogAlerts.java
@@ -16,8 +16,8 @@
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.resources.fluentcore.utils.SdkContext;
import com.azure.management.samples.Utils;
-import com.azure.management.storage.AccessTier;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.AccessTier;
+import com.azure.management.storage.models.StorageAccount;
import java.time.OffsetDateTime;
diff --git a/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageApplicationGateway.java b/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageApplicationGateway.java
index 942a68e1190c..05068f5f590d 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageApplicationGateway.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageApplicationGateway.java
@@ -21,7 +21,7 @@
import com.azure.management.resources.fluentcore.model.CreatedResources;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.samples.Utils;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import org.apache.commons.lang.time.StopWatch;
import java.io.File;
diff --git a/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageNetworkWatcher.java b/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageNetworkWatcher.java
index 148310757699..6315c2685033 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageNetworkWatcher.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageNetworkWatcher.java
@@ -28,7 +28,7 @@
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.resources.fluentcore.utils.SdkContext;
import com.azure.management.samples.Utils;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import com.azure.storage.blob.BlobClient;
import com.azure.storage.blob.BlobContainerClient;
import com.azure.storage.blob.BlobServiceClient;
diff --git a/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageVirtualMachinesInParallelWithNetwork.java b/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageVirtualMachinesInParallelWithNetwork.java
index c7320334dce9..15b3ce9a1e4a 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageVirtualMachinesInParallelWithNetwork.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageVirtualMachinesInParallelWithNetwork.java
@@ -19,7 +19,7 @@
import com.azure.management.resources.fluentcore.model.Creatable;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.samples.Utils;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import org.apache.commons.lang.time.StopWatch;
import java.util.ArrayList;
diff --git a/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageVpnGatewayVNet2VNetConnection.java b/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageVpnGatewayVNet2VNetConnection.java
index 8d7b281f03cb..641118b0f8cc 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageVpnGatewayVNet2VNetConnection.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageVpnGatewayVNet2VNetConnection.java
@@ -23,7 +23,7 @@
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.resources.fluentcore.utils.SdkContext;
import com.azure.management.samples.Utils;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import com.azure.storage.blob.BlobContainerClient;
import com.azure.storage.blob.BlobServiceClient;
import com.azure.storage.blob.BlobServiceClientBuilder;
diff --git a/sdk/management/samples/src/main/java/com/azure/management/resources/samples/ManageResource.java b/sdk/management/samples/src/main/java/com/azure/management/resources/samples/ManageResource.java
index 274da6f17fab..68cf5b5de431 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/resources/samples/ManageResource.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/resources/samples/ManageResource.java
@@ -10,8 +10,8 @@
import com.azure.management.Azure;
import com.azure.management.resources.fluentcore.arm.Region;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
-import com.azure.management.storage.SkuName;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.SkuName;
+import com.azure.management.storage.models.StorageAccount;
/**
* Azure Resource sample for managing resources -
diff --git a/sdk/management/samples/src/main/java/com/azure/management/samples/Utils.java b/sdk/management/samples/src/main/java/com/azure/management/samples/Utils.java
index 0c6dcdb5d142..24117e7f5192 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/samples/Utils.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/samples/Utils.java
@@ -151,10 +151,10 @@
import com.azure.management.sql.SqlServerKey;
import com.azure.management.sql.SqlSubscriptionUsageMetric;
import com.azure.management.sql.SqlVirtualNetworkRule;
-import com.azure.management.storage.StorageAccount;
-import com.azure.management.storage.StorageAccountEncryptionStatus;
-import com.azure.management.storage.StorageAccountKey;
-import com.azure.management.storage.StorageService;
+import com.azure.management.storage.models.StorageAccount;
+import com.azure.management.storage.models.StorageAccountEncryptionStatus;
+import com.azure.management.storage.models.StorageAccountKey;
+import com.azure.management.storage.models.StorageService;
import org.apache.commons.net.ftp.FTP;
import org.apache.commons.net.ftp.FTPClient;
import reactor.core.publisher.Flux;
diff --git a/sdk/management/samples/src/main/java/com/azure/management/sql/samples/ManageSqlImportExportDatabase.java b/sdk/management/samples/src/main/java/com/azure/management/sql/samples/ManageSqlImportExportDatabase.java
index ae83f5894cf3..f1b650f27599 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/sql/samples/ManageSqlImportExportDatabase.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/sql/samples/ManageSqlImportExportDatabase.java
@@ -16,7 +16,7 @@
import com.azure.management.sql.SampleName;
import com.azure.management.sql.SqlDatabase;
import com.azure.management.sql.SqlServer;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
/**
* Azure SQL sample for managing import/export SQL Database -
diff --git a/sdk/management/samples/src/main/java/com/azure/management/sql/samples/ManageSqlServerSecurityAlertPolicy.java b/sdk/management/samples/src/main/java/com/azure/management/sql/samples/ManageSqlServerSecurityAlertPolicy.java
index c12cfdd9d487..af87b2e9effa 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/sql/samples/ManageSqlServerSecurityAlertPolicy.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/sql/samples/ManageSqlServerSecurityAlertPolicy.java
@@ -15,7 +15,7 @@
import com.azure.management.sql.SqlDatabaseStandardServiceObjective;
import com.azure.management.sql.SqlServer;
import com.azure.management.sql.SqlServerSecurityAlertPolicy;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
/**
* Azure SQL sample for managing SQL Server Security Alert Policy
diff --git a/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccount.java b/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccount.java
index ea8d9c298b69..26146f0b9164 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccount.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccount.java
@@ -13,11 +13,11 @@
import com.azure.management.resources.fluentcore.arm.Region;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.samples.Utils;
-import com.azure.management.storage.StorageAccount;
-import com.azure.management.storage.StorageAccountEncryptionStatus;
-import com.azure.management.storage.StorageAccountKey;
-import com.azure.management.storage.StorageAccounts;
-import com.azure.management.storage.StorageService;
+import com.azure.management.storage.models.StorageAccount;
+import com.azure.management.storage.models.StorageAccountEncryptionStatus;
+import com.azure.management.storage.models.StorageAccountKey;
+import com.azure.management.storage.models.StorageAccounts;
+import com.azure.management.storage.models.StorageService;
import java.util.List;
import java.util.Map;
diff --git a/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccountAsync.java b/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccountAsync.java
index b4378633e516..fdd45d4a78db 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccountAsync.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccountAsync.java
@@ -12,8 +12,8 @@
import com.azure.management.resources.fluentcore.arm.Region;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.samples.Utils;
-import com.azure.management.storage.StorageAccount;
-import com.azure.management.storage.StorageAccounts;
+import com.azure.management.storage.models.StorageAccount;
+import com.azure.management.storage.models.StorageAccounts;
import reactor.core.publisher.Flux;
/**
diff --git a/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccountNetworkRules.java b/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccountNetworkRules.java
index 385250321a77..6b1ca4222598 100644
--- a/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccountNetworkRules.java
+++ b/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccountNetworkRules.java
@@ -17,7 +17,7 @@
import com.azure.management.resources.fluentcore.arm.Region;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.samples.Utils;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
/**
* Azure Storage sample for managing storage account network rules -
diff --git a/sdk/monitor/mgmt/src/test/java/com/azure/management/monitor/AlertsTests.java b/sdk/monitor/mgmt/src/test/java/com/azure/management/monitor/AlertsTests.java
index d10da4d45c72..75529cfa730f 100644
--- a/sdk/monitor/mgmt/src/test/java/com/azure/management/monitor/AlertsTests.java
+++ b/sdk/monitor/mgmt/src/test/java/com/azure/management/monitor/AlertsTests.java
@@ -10,7 +10,7 @@
import com.azure.management.resources.core.TestUtilities;
import com.azure.management.resources.fluentcore.arm.Region;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import java.time.Duration;
import java.time.OffsetDateTime;
import java.util.Arrays;
diff --git a/sdk/monitor/mgmt/src/test/java/com/azure/management/monitor/MonitorManagementTest.java b/sdk/monitor/mgmt/src/test/java/com/azure/management/monitor/MonitorManagementTest.java
index 51ed7b232caa..cf155c522735 100644
--- a/sdk/monitor/mgmt/src/test/java/com/azure/management/monitor/MonitorManagementTest.java
+++ b/sdk/monitor/mgmt/src/test/java/com/azure/management/monitor/MonitorManagementTest.java
@@ -11,7 +11,7 @@
import com.azure.management.resources.core.TestBase;
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.resources.implementation.ResourceManager;
-import com.azure.management.storage.implementation.StorageManager;
+import com.azure.management.storage.StorageManager;
/** The base for Monitor manager tests. */
public class MonitorManagementTest extends TestBase {
diff --git a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabase.java b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabase.java
index 65fede1a8570..88261032f17d 100644
--- a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabase.java
+++ b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabase.java
@@ -15,7 +15,7 @@
import com.azure.management.resources.fluentcore.model.Refreshable;
import com.azure.management.resources.fluentcore.model.Updatable;
import com.azure.management.sql.models.DatabaseInner;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import java.time.OffsetDateTime;
import java.util.List;
import java.util.Map;
diff --git a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseExportRequest.java b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseExportRequest.java
index 1caba94f04b8..649a31c57724 100644
--- a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseExportRequest.java
+++ b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseExportRequest.java
@@ -7,7 +7,7 @@
import com.azure.management.resources.fluentcore.model.Creatable;
import com.azure.management.resources.fluentcore.model.Executable;
import com.azure.management.resources.fluentcore.model.HasInner;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
/** An immutable client-side representation of an Azure SQL Database export operation request. */
@Fluent
diff --git a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseImportRequest.java b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseImportRequest.java
index 5db486df6b83..a762802e4bdc 100644
--- a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseImportRequest.java
+++ b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseImportRequest.java
@@ -6,7 +6,7 @@
import com.azure.management.resources.fluentcore.arm.models.HasParent;
import com.azure.management.resources.fluentcore.model.Executable;
import com.azure.management.resources.fluentcore.model.HasInner;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
/** An immutable client-side representation of an Azure SQL Database import operation request. */
@Fluent
diff --git a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseOperations.java b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseOperations.java
index 097ad4c32cde..d98ef9a24211 100644
--- a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseOperations.java
+++ b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseOperations.java
@@ -6,7 +6,7 @@
import com.azure.management.resources.fluentcore.arm.models.Resource;
import com.azure.management.resources.fluentcore.collection.SupportsCreating;
import com.azure.management.resources.fluentcore.model.Creatable;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import java.time.OffsetDateTime;
/** A representation of the Azure SQL Database operations. */
diff --git a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseExportRequestImpl.java b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseExportRequestImpl.java
index 974fc0447a22..11e9214d018d 100644
--- a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseExportRequestImpl.java
+++ b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseExportRequestImpl.java
@@ -13,7 +13,7 @@
import com.azure.management.sql.SqlDatabaseExportRequest;
import com.azure.management.sql.SqlDatabaseImportExportResponse;
import com.azure.management.sql.StorageKeyType;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import com.azure.storage.blob.BlobServiceClient;
import com.azure.storage.blob.BlobServiceClientBuilder;
import com.azure.storage.blob.implementation.models.StorageErrorException;
diff --git a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseForElasticPoolImpl.java b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseForElasticPoolImpl.java
index 4af229793edb..9d4723b7e9bf 100644
--- a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseForElasticPoolImpl.java
+++ b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseForElasticPoolImpl.java
@@ -8,7 +8,7 @@
import com.azure.management.sql.SampleName;
import com.azure.management.sql.SqlDatabase;
import com.azure.management.sql.SqlElasticPoolOperations;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import java.time.OffsetDateTime;
import java.util.Objects;
diff --git a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseImpl.java b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseImpl.java
index 844c64947a16..08dd64d6015e 100644
--- a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseImpl.java
+++ b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseImpl.java
@@ -52,7 +52,7 @@
import com.azure.management.sql.models.RestorePointInner;
import com.azure.management.sql.models.ServiceTierAdvisorInner;
import com.azure.management.sql.models.TransparentDataEncryptionInner;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.Collections;
diff --git a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseImportRequestImpl.java b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseImportRequestImpl.java
index 9b51d30b0791..4f9340966a57 100644
--- a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseImportRequestImpl.java
+++ b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseImportRequestImpl.java
@@ -11,7 +11,7 @@
import com.azure.management.sql.SqlDatabaseImportExportResponse;
import com.azure.management.sql.SqlDatabaseImportRequest;
import com.azure.management.sql.StorageKeyType;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import java.util.Objects;
import reactor.core.publisher.Mono;
diff --git a/sdk/sql/mgmt/src/test/java/com/azure/management/sql/SqlServerOperationsTests.java b/sdk/sql/mgmt/src/test/java/com/azure/management/sql/SqlServerOperationsTests.java
index 0fc36a881248..45d0dedb6402 100644
--- a/sdk/sql/mgmt/src/test/java/com/azure/management/sql/SqlServerOperationsTests.java
+++ b/sdk/sql/mgmt/src/test/java/com/azure/management/sql/SqlServerOperationsTests.java
@@ -11,7 +11,7 @@
import com.azure.management.resources.fluentcore.model.Indexable;
import com.azure.management.resources.fluentcore.utils.SdkContext;
import com.azure.management.resources.fluentcore.utils.Utils;
-import com.azure.management.storage.StorageAccount;
+import com.azure.management.storage.models.StorageAccount;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
diff --git a/sdk/sql/mgmt/src/test/java/com/azure/management/sql/SqlServerTest.java b/sdk/sql/mgmt/src/test/java/com/azure/management/sql/SqlServerTest.java
index 8053cb7ed271..d83092bc0a58 100644
--- a/sdk/sql/mgmt/src/test/java/com/azure/management/sql/SqlServerTest.java
+++ b/sdk/sql/mgmt/src/test/java/com/azure/management/sql/SqlServerTest.java
@@ -9,7 +9,7 @@
import com.azure.management.resources.fluentcore.utils.SdkContext;
import com.azure.management.resources.implementation.ResourceManager;
import com.azure.management.sql.implementation.SqlServerManager;
-import com.azure.management.storage.implementation.StorageManager;
+import com.azure.management.storage.StorageManager;
public abstract class SqlServerTest extends TestBase {
protected ResourceManager resourceManager;
diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java
new file mode 100644
index 000000000000..deea31dd108f
--- /dev/null
+++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java
@@ -0,0 +1,340 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.management.storage;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.CookiePolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.management.AzureServiceClient;
+import com.azure.management.storage.fluent.BlobContainersClient;
+import com.azure.management.storage.fluent.BlobServicesClient;
+import com.azure.management.storage.fluent.EncryptionScopesClient;
+import com.azure.management.storage.fluent.FileServicesClient;
+import com.azure.management.storage.fluent.FileSharesClient;
+import com.azure.management.storage.fluent.ManagementPoliciesClient;
+import com.azure.management.storage.fluent.ObjectReplicationPoliciesOperationsClient;
+import com.azure.management.storage.fluent.OperationsClient;
+import com.azure.management.storage.fluent.PrivateEndpointConnectionsClient;
+import com.azure.management.storage.fluent.PrivateLinkResourcesClient;
+import com.azure.management.storage.fluent.QueueServicesClient;
+import com.azure.management.storage.fluent.QueuesClient;
+import com.azure.management.storage.fluent.SkusClient;
+import com.azure.management.storage.fluent.StorageAccountsClient;
+import com.azure.management.storage.fluent.TableServicesClient;
+import com.azure.management.storage.fluent.TablesClient;
+import com.azure.management.storage.fluent.UsagesClient;
+
+/** Initializes a new instance of the StorageManagementClient type. */
+@ServiceClient(builder = StorageManagementClientBuilder.class)
+public final class StorageManagementClient extends AzureServiceClient {
+ private final ClientLogger logger = new ClientLogger(StorageManagementClient.class);
+
+ /** The ID of the target subscription. */
+ private final String subscriptionId;
+
+ /**
+ * Gets The ID of the target subscription.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /** server parameter. */
+ private final String endpoint;
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /** Api Version. */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /** The HTTP pipeline to send requests through. */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /** The OperationsClient object to access its operations. */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /** The SkusClient object to access its operations. */
+ private final SkusClient skus;
+
+ /**
+ * Gets the SkusClient object to access its operations.
+ *
+ * @return the SkusClient object.
+ */
+ public SkusClient getSkus() {
+ return this.skus;
+ }
+
+ /** The StorageAccountsClient object to access its operations. */
+ private final StorageAccountsClient storageAccounts;
+
+ /**
+ * Gets the StorageAccountsClient object to access its operations.
+ *
+ * @return the StorageAccountsClient object.
+ */
+ public StorageAccountsClient getStorageAccounts() {
+ return this.storageAccounts;
+ }
+
+ /** The UsagesClient object to access its operations. */
+ private final UsagesClient usages;
+
+ /**
+ * Gets the UsagesClient object to access its operations.
+ *
+ * @return the UsagesClient object.
+ */
+ public UsagesClient getUsages() {
+ return this.usages;
+ }
+
+ /** The ManagementPoliciesClient object to access its operations. */
+ private final ManagementPoliciesClient managementPolicies;
+
+ /**
+ * Gets the ManagementPoliciesClient object to access its operations.
+ *
+ * @return the ManagementPoliciesClient object.
+ */
+ public ManagementPoliciesClient getManagementPolicies() {
+ return this.managementPolicies;
+ }
+
+ /** The PrivateEndpointConnectionsClient object to access its operations. */
+ private final PrivateEndpointConnectionsClient privateEndpointConnections;
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
+ /** The PrivateLinkResourcesClient object to access its operations. */
+ private final PrivateLinkResourcesClient privateLinkResources;
+
+ /**
+ * Gets the PrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the PrivateLinkResourcesClient object.
+ */
+ public PrivateLinkResourcesClient getPrivateLinkResources() {
+ return this.privateLinkResources;
+ }
+
+ /** The ObjectReplicationPoliciesOperationsClient object to access its operations. */
+ private final ObjectReplicationPoliciesOperationsClient objectReplicationPoliciesOperations;
+
+ /**
+ * Gets the ObjectReplicationPoliciesOperationsClient object to access its operations.
+ *
+ * @return the ObjectReplicationPoliciesOperationsClient object.
+ */
+ public ObjectReplicationPoliciesOperationsClient getObjectReplicationPoliciesOperations() {
+ return this.objectReplicationPoliciesOperations;
+ }
+
+ /** The EncryptionScopesClient object to access its operations. */
+ private final EncryptionScopesClient encryptionScopes;
+
+ /**
+ * Gets the EncryptionScopesClient object to access its operations.
+ *
+ * @return the EncryptionScopesClient object.
+ */
+ public EncryptionScopesClient getEncryptionScopes() {
+ return this.encryptionScopes;
+ }
+
+ /** The BlobServicesClient object to access its operations. */
+ private final BlobServicesClient blobServices;
+
+ /**
+ * Gets the BlobServicesClient object to access its operations.
+ *
+ * @return the BlobServicesClient object.
+ */
+ public BlobServicesClient getBlobServices() {
+ return this.blobServices;
+ }
+
+ /** The BlobContainersClient object to access its operations. */
+ private final BlobContainersClient blobContainers;
+
+ /**
+ * Gets the BlobContainersClient object to access its operations.
+ *
+ * @return the BlobContainersClient object.
+ */
+ public BlobContainersClient getBlobContainers() {
+ return this.blobContainers;
+ }
+
+ /** The FileServicesClient object to access its operations. */
+ private final FileServicesClient fileServices;
+
+ /**
+ * Gets the FileServicesClient object to access its operations.
+ *
+ * @return the FileServicesClient object.
+ */
+ public FileServicesClient getFileServices() {
+ return this.fileServices;
+ }
+
+ /** The FileSharesClient object to access its operations. */
+ private final FileSharesClient fileShares;
+
+ /**
+ * Gets the FileSharesClient object to access its operations.
+ *
+ * @return the FileSharesClient object.
+ */
+ public FileSharesClient getFileShares() {
+ return this.fileShares;
+ }
+
+ /** The QueueServicesClient object to access its operations. */
+ private final QueueServicesClient queueServices;
+
+ /**
+ * Gets the QueueServicesClient object to access its operations.
+ *
+ * @return the QueueServicesClient object.
+ */
+ public QueueServicesClient getQueueServices() {
+ return this.queueServices;
+ }
+
+ /** The QueuesClient object to access its operations. */
+ private final QueuesClient queues;
+
+ /**
+ * Gets the QueuesClient object to access its operations.
+ *
+ * @return the QueuesClient object.
+ */
+ public QueuesClient getQueues() {
+ return this.queues;
+ }
+
+ /** The TableServicesClient object to access its operations. */
+ private final TableServicesClient tableServices;
+
+ /**
+ * Gets the TableServicesClient object to access its operations.
+ *
+ * @return the TableServicesClient object.
+ */
+ public TableServicesClient getTableServices() {
+ return this.tableServices;
+ }
+
+ /** The TablesClient object to access its operations. */
+ private final TablesClient tables;
+
+ /**
+ * Gets the TablesClient object to access its operations.
+ *
+ * @return the TablesClient object.
+ */
+ public TablesClient getTables() {
+ return this.tables;
+ }
+
+ /** Initializes an instance of StorageManagementClient client. */
+ StorageManagementClient(String subscriptionId, String endpoint) {
+ this(
+ new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()).build(),
+ AzureEnvironment.AZURE,
+ subscriptionId,
+ endpoint);
+ }
+
+ /**
+ * Initializes an instance of StorageManagementClient client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ */
+ StorageManagementClient(HttpPipeline httpPipeline, String subscriptionId, String endpoint) {
+ this(httpPipeline, AzureEnvironment.AZURE, subscriptionId, endpoint);
+ }
+
+ /**
+ * Initializes an instance of StorageManagementClient client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param environment The Azure environment.
+ */
+ StorageManagementClient(
+ HttpPipeline httpPipeline, AzureEnvironment environment, String subscriptionId, String endpoint) {
+ super(httpPipeline, environment);
+ this.httpPipeline = httpPipeline;
+ this.subscriptionId = subscriptionId;
+ this.endpoint = endpoint;
+ this.apiVersion = "2019-06-01";
+ this.operations = new OperationsClient(this);
+ this.skus = new SkusClient(this);
+ this.storageAccounts = new StorageAccountsClient(this);
+ this.usages = new UsagesClient(this);
+ this.managementPolicies = new ManagementPoliciesClient(this);
+ this.privateEndpointConnections = new PrivateEndpointConnectionsClient(this);
+ this.privateLinkResources = new PrivateLinkResourcesClient(this);
+ this.objectReplicationPoliciesOperations = new ObjectReplicationPoliciesOperationsClient(this);
+ this.encryptionScopes = new EncryptionScopesClient(this);
+ this.blobServices = new BlobServicesClient(this);
+ this.blobContainers = new BlobContainersClient(this);
+ this.fileServices = new FileServicesClient(this);
+ this.fileShares = new FileSharesClient(this);
+ this.queueServices = new QueueServicesClient(this);
+ this.queues = new QueuesClient(this);
+ this.tableServices = new TableServicesClient(this);
+ this.tables = new TablesClient(this);
+ }
+}
diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageManagementClientBuilder.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java
similarity index 66%
rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageManagementClientBuilder.java
rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java
index 77bdba28d936..598b1c0ae314 100644
--- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageManagementClientBuilder.java
+++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.management.storage.models;
+package com.azure.management.storage;
import com.azure.core.annotation.ServiceClientBuilder;
import com.azure.core.http.HttpPipeline;
@@ -12,8 +12,8 @@
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.AzureEnvironment;
-/** A builder for creating a new instance of the StorageManagementClientImpl type. */
-@ServiceClientBuilder(serviceClients = {StorageManagementClientImpl.class})
+/** A builder for creating a new instance of the StorageManagementClient type. */
+@ServiceClientBuilder(serviceClients = {StorageManagementClient.class})
public final class StorageManagementClientBuilder {
/*
* The ID of the target subscription.
@@ -34,32 +34,16 @@ public StorageManagementClientBuilder subscriptionId(String subscriptionId) {
/*
* server parameter
*/
- private String host;
+ private String endpoint;
/**
* Sets server parameter.
*
- * @param host the host value.
+ * @param endpoint the endpoint value.
* @return the StorageManagementClientBuilder.
*/
- public StorageManagementClientBuilder host(String host) {
- this.host = host;
- return this;
- }
-
- /*
- * Api Version
- */
- private String apiVersion;
-
- /**
- * Sets Api Version.
- *
- * @param apiVersion the apiVersion value.
- * @return the StorageManagementClientBuilder.
- */
- public StorageManagementClientBuilder apiVersion(String apiVersion) {
- this.apiVersion = apiVersion;
+ public StorageManagementClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
return this;
}
@@ -96,16 +80,13 @@ public StorageManagementClientBuilder pipeline(HttpPipeline pipeline) {
}
/**
- * Builds an instance of StorageManagementClientImpl with the provided parameters.
+ * Builds an instance of StorageManagementClient with the provided parameters.
*
- * @return an instance of StorageManagementClientImpl.
+ * @return an instance of StorageManagementClient.
*/
- public StorageManagementClientImpl buildClient() {
- if (host == null) {
- this.host = "https://management.azure.com";
- }
- if (apiVersion == null) {
- this.apiVersion = "2019-06-01";
+ public StorageManagementClient buildClient() {
+ if (endpoint == null) {
+ this.endpoint = "https://management.azure.com";
}
if (environment == null) {
this.environment = AzureEnvironment.AZURE;
@@ -116,10 +97,7 @@ public StorageManagementClientImpl buildClient() {
.policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
.build();
}
- StorageManagementClientImpl client = new StorageManagementClientImpl(pipeline, environment);
- client.setSubscriptionId(this.subscriptionId);
- client.setHost(this.host);
- client.setApiVersion(this.apiVersion);
+ StorageManagementClient client = new StorageManagementClient(pipeline, environment, subscriptionId, endpoint);
return client;
}
}
diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageManager.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManager.java
similarity index 85%
rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageManager.java
rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManager.java
index 9ccf2f0e27a6..a0b8843e3467 100644
--- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageManager.java
+++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManager.java
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-package com.azure.management.storage.implementation;
+package com.azure.management.storage;
import com.azure.core.credential.TokenCredential;
import com.azure.core.http.HttpPipeline;
@@ -11,17 +11,21 @@
import com.azure.management.resources.fluentcore.profile.AzureProfile;
import com.azure.management.resources.fluentcore.utils.HttpPipelineProvider;
import com.azure.management.resources.fluentcore.utils.SdkContext;
-import com.azure.management.storage.BlobContainers;
-import com.azure.management.storage.BlobServices;
-import com.azure.management.storage.ManagementPolicies;
-import com.azure.management.storage.StorageAccounts;
-import com.azure.management.storage.StorageSkus;
-import com.azure.management.storage.Usages;
-import com.azure.management.storage.models.StorageManagementClientBuilder;
-import com.azure.management.storage.models.StorageManagementClientImpl;
+import com.azure.management.storage.implementation.BlobContainersImpl;
+import com.azure.management.storage.implementation.BlobServicesImpl;
+import com.azure.management.storage.implementation.ManagementPoliciesImpl;
+import com.azure.management.storage.implementation.StorageAccountsImpl;
+import com.azure.management.storage.implementation.StorageSkusImpl;
+import com.azure.management.storage.implementation.UsagesImpl;
+import com.azure.management.storage.models.BlobContainers;
+import com.azure.management.storage.models.BlobServices;
+import com.azure.management.storage.models.ManagementPolicies;
+import com.azure.management.storage.models.StorageAccounts;
+import com.azure.management.storage.models.StorageSkus;
+import com.azure.management.storage.models.Usages;
/** Entry point to Azure storage resource management. */
-public final class StorageManager extends Manager {
+public final class StorageManager extends Manager {
// Collections
private StorageAccounts storageAccounts;
private Usages storageUsages;
@@ -98,7 +102,7 @@ private StorageManager(HttpPipeline httpPipeline, AzureProfile profile, SdkConte
profile,
new StorageManagementClientBuilder()
.pipeline(httpPipeline)
- .host(profile.environment().getResourceManagerEndpoint())
+ .endpoint(profile.environment().getResourceManagerEndpoint())
.subscriptionId(profile.subscriptionId())
.buildClient(),
sdkContext);
diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java
similarity index 71%
rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersInner.java
rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java
index f719dd88efac..20db21a12914 100644
--- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersInner.java
+++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.management.storage.models;
+package com.azure.management.storage.fluent;
import com.azure.core.annotation.BodyParam;
import com.azure.core.annotation.Delete;
@@ -27,31 +27,43 @@
import com.azure.core.http.rest.PagedResponseBase;
import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.RestProxy;
-import com.azure.core.http.rest.SimpleResponse;
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.management.storage.LeaseContainerRequest;
+import com.azure.management.storage.StorageManagementClient;
+import com.azure.management.storage.fluent.inner.BlobContainerInner;
+import com.azure.management.storage.fluent.inner.ImmutabilityPolicyInner;
+import com.azure.management.storage.fluent.inner.LeaseContainerResponseInner;
+import com.azure.management.storage.fluent.inner.LegalHoldInner;
+import com.azure.management.storage.fluent.inner.ListContainerItemInner;
+import com.azure.management.storage.fluent.inner.ListContainerItemsInner;
+import com.azure.management.storage.models.BlobContainersCreateOrUpdateImmutabilityPolicyResponse;
+import com.azure.management.storage.models.BlobContainersDeleteImmutabilityPolicyResponse;
+import com.azure.management.storage.models.BlobContainersExtendImmutabilityPolicyResponse;
+import com.azure.management.storage.models.BlobContainersGetImmutabilityPolicyResponse;
+import com.azure.management.storage.models.BlobContainersLockImmutabilityPolicyResponse;
+import com.azure.management.storage.models.LeaseContainerRequest;
+import com.azure.management.storage.models.ListSharesExpand;
import java.util.List;
import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in BlobContainers. */
-public final class BlobContainersInner {
- private final ClientLogger logger = new ClientLogger(BlobContainersInner.class);
+public final class BlobContainersClient {
+ private final ClientLogger logger = new ClientLogger(BlobContainersClient.class);
/** The proxy service used to perform REST calls. */
private final BlobContainersService service;
/** The service client containing this operation class. */
- private final StorageManagementClientImpl client;
+ private final StorageManagementClient client;
/**
- * Initializes an instance of BlobContainersInner.
+ * Initializes an instance of BlobContainersClient.
*
* @param client the instance of the service client containing this operation class.
*/
- BlobContainersInner(StorageManagementClientImpl client) {
+ public BlobContainersClient(StorageManagementClient client) {
this.service =
RestProxy.create(BlobContainersService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
@@ -70,14 +82,15 @@ private interface BlobContainersService {
+ "/storageAccounts/{accountName}/blobServices/default/containers")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(
- @HostParam("$host") String host,
+ Mono> list(
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@QueryParam("$maxpagesize") String maxpagesize,
@QueryParam("$filter") String filter,
+ @QueryParam("$include") ListSharesExpand include,
Context context);
@Headers({"Accept: application/json", "Content-Type: application/json"})
@@ -86,8 +99,8 @@ Mono> list(
+ "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}")
@ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> create(
- @HostParam("$host") String host,
+ Mono> create(
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@PathParam("containerName") String containerName,
@@ -102,8 +115,8 @@ Mono> create(
+ "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> update(
- @HostParam("$host") String host,
+ Mono> update(
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@PathParam("containerName") String containerName,
@@ -118,8 +131,8 @@ Mono> update(
+ "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(
- @HostParam("$host") String host,
+ Mono> get(
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@PathParam("containerName") String containerName,
@@ -134,7 +147,7 @@ Mono> get(
@ExpectedResponses({200, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> delete(
- @HostParam("$host") String host,
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@PathParam("containerName") String containerName,
@@ -148,8 +161,8 @@ Mono> delete(
+ "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> setLegalHold(
- @HostParam("$host") String host,
+ Mono> setLegalHold(
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@PathParam("containerName") String containerName,
@@ -164,8 +177,8 @@ Mono> setLegalHold(
+ "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> clearLegalHold(
- @HostParam("$host") String host,
+ Mono> clearLegalHold(
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@PathParam("containerName") String containerName,
@@ -177,12 +190,12 @@ Mono> clearLegalHold(
@Headers({"Accept: application/json", "Content-Type: application/json"})
@Put(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage"
- + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}"
- + "/immutabilityPolicies/{immutabilityPolicyName}")
+ + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies"
+ + "/{immutabilityPolicyName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono createOrUpdateImmutabilityPolicy(
- @HostParam("$host") String host,
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@PathParam("containerName") String containerName,
@@ -196,12 +209,12 @@ Mono createOrUpdateImmut
@Headers({"Accept: application/json", "Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage"
- + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}"
- + "/immutabilityPolicies/{immutabilityPolicyName}")
+ + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies"
+ + "/{immutabilityPolicyName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono getImmutabilityPolicy(
- @HostParam("$host") String host,
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@PathParam("containerName") String containerName,
@@ -214,12 +227,12 @@ Mono getImmutabilityPolicy(
@Headers({"Accept: application/json", "Content-Type: application/json"})
@Delete(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage"
- + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}"
- + "/immutabilityPolicies/{immutabilityPolicyName}")
+ + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies"
+ + "/{immutabilityPolicyName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono deleteImmutabilityPolicy(
- @HostParam("$host") String host,
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@PathParam("containerName") String containerName,
@@ -232,12 +245,12 @@ Mono deleteImmutabilityPolicy(
@Headers({"Accept: application/json", "Content-Type: application/json"})
@Post(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage"
- + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}"
- + "/immutabilityPolicies/default/lock")
+ + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies"
+ + "/default/lock")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono lockImmutabilityPolicy(
- @HostParam("$host") String host,
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@PathParam("containerName") String containerName,
@@ -249,12 +262,12 @@ Mono lockImmutabilityPolicy(
@Headers({"Accept: application/json", "Content-Type: application/json"})
@Post(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage"
- + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}"
- + "/immutabilityPolicies/default/extend")
+ + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies"
+ + "/default/extend")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono extendImmutabilityPolicy(
- @HostParam("$host") String host,
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@PathParam("containerName") String containerName,
@@ -270,8 +283,8 @@ Mono extendImmutabilityPolicy(
+ "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> lease(
- @HostParam("$host") String host,
+ Mono> lease(
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@PathParam("containerName") String containerName,
@@ -284,7 +297,7 @@ Mono> lease(
@Get("{nextLink}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listNext(
+ Mono> listNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, Context context);
}
@@ -298,6 +311,7 @@ Mono> listNext(
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param maxpagesize Optional. Specified maximum number of containers that can be included in the list.
* @param filter Optional. When specified, only container names starting with the filter will be listed.
+ * @param include Optional, used to include the properties for soft deleted blob containers.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -305,10 +319,12 @@ Mono> listNext(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> listSinglePageAsync(
- String resourceGroupName, String accountName, String maxpagesize, String filter) {
- if (this.client.getHost() == null) {
+ String resourceGroupName, String accountName, String maxpagesize, String filter, ListSharesExpand include) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -328,13 +344,14 @@ public Mono> listSinglePageAsync(
context ->
service
.list(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
this.client.getApiVersion(),
this.client.getSubscriptionId(),
maxpagesize,
filter,
+ include,
context))
.>map(
res ->
@@ -358,6 +375,7 @@ public Mono> listSinglePageAsync(
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param maxpagesize Optional. Specified maximum number of containers that can be included in the list.
* @param filter Optional. When specified, only container names starting with the filter will be listed.
+ * @param include Optional, used to include the properties for soft deleted blob containers.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -366,10 +384,17 @@ public Mono> listSinglePageAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> listSinglePageAsync(
- String resourceGroupName, String accountName, String maxpagesize, String filter, Context context) {
- if (this.client.getHost() == null) {
+ String resourceGroupName,
+ String accountName,
+ String maxpagesize,
+ String filter,
+ ListSharesExpand include,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -386,13 +411,14 @@ public Mono> listSinglePageAsync(
}
return service
.list(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
this.client.getApiVersion(),
this.client.getSubscriptionId(),
maxpagesize,
filter,
+ include,
context)
.map(
res ->
@@ -415,6 +441,7 @@ public Mono> listSinglePageAsync(
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param maxpagesize Optional. Specified maximum number of containers that can be included in the list.
* @param filter Optional. When specified, only container names starting with the filter will be listed.
+ * @param include Optional, used to include the properties for soft deleted blob containers.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -422,9 +449,9 @@ public Mono> listSinglePageAsync(
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux listAsync(
- String resourceGroupName, String accountName, String maxpagesize, String filter) {
+ String resourceGroupName, String accountName, String maxpagesize, String filter, ListSharesExpand include) {
return new PagedFlux<>(
- () -> listSinglePageAsync(resourceGroupName, accountName, maxpagesize, filter),
+ () -> listSinglePageAsync(resourceGroupName, accountName, maxpagesize, filter, include),
nextLink -> listNextSinglePageAsync(nextLink));
}
@@ -438,6 +465,7 @@ public PagedFlux listAsync(
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param maxpagesize Optional. Specified maximum number of containers that can be included in the list.
* @param filter Optional. When specified, only container names starting with the filter will be listed.
+ * @param include Optional, used to include the properties for soft deleted blob containers.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -446,9 +474,14 @@ public PagedFlux listAsync(
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux listAsync(
- String resourceGroupName, String accountName, String maxpagesize, String filter, Context context) {
+ String resourceGroupName,
+ String accountName,
+ String maxpagesize,
+ String filter,
+ ListSharesExpand include,
+ Context context) {
return new PagedFlux<>(
- () -> listSinglePageAsync(resourceGroupName, accountName, maxpagesize, filter, context),
+ () -> listSinglePageAsync(resourceGroupName, accountName, maxpagesize, filter, include, context),
nextLink -> listNextSinglePageAsync(nextLink));
}
@@ -469,9 +502,10 @@ public PagedFlux listAsync(
public PagedFlux listAsync(String resourceGroupName, String accountName) {
final String maxpagesize = null;
final String filter = null;
+ final ListSharesExpand include = null;
final Context context = null;
return new PagedFlux<>(
- () -> listSinglePageAsync(resourceGroupName, accountName, maxpagesize, filter),
+ () -> listSinglePageAsync(resourceGroupName, accountName, maxpagesize, filter, include),
nextLink -> listNextSinglePageAsync(nextLink));
}
@@ -485,6 +519,30 @@ public PagedFlux listAsync(String resourceGroupName, Str
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param maxpagesize Optional. Specified maximum number of containers that can be included in the list.
* @param filter Optional. When specified, only container names starting with the filter will be listed.
+ * @param include Optional, used to include the properties for soft deleted blob containers.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response schema.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String accountName, String maxpagesize, String filter, ListSharesExpand include) {
+ return new PagedIterable<>(listAsync(resourceGroupName, accountName, maxpagesize, filter, include));
+ }
+
+ /**
+ * Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation
+ * token.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param maxpagesize Optional. Specified maximum number of containers that can be included in the list.
+ * @param filter Optional. When specified, only container names starting with the filter will be listed.
+ * @param include Optional, used to include the properties for soft deleted blob containers.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -492,8 +550,13 @@ public PagedFlux listAsync(String resourceGroupName, Str
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
- String resourceGroupName, String accountName, String maxpagesize, String filter) {
- return new PagedIterable<>(listAsync(resourceGroupName, accountName, maxpagesize, filter));
+ String resourceGroupName,
+ String accountName,
+ String maxpagesize,
+ String filter,
+ ListSharesExpand include,
+ Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, accountName, maxpagesize, filter, include, context));
}
/**
@@ -513,8 +576,9 @@ public PagedIterable list(
public PagedIterable list(String resourceGroupName, String accountName) {
final String maxpagesize = null;
final String filter = null;
+ final ListSharesExpand include = null;
final Context context = null;
- return new PagedIterable<>(listAsync(resourceGroupName, accountName, maxpagesize, filter));
+ return new PagedIterable<>(listAsync(resourceGroupName, accountName, maxpagesize, filter, include));
}
/**
@@ -535,11 +599,13 @@ public PagedIterable list(String resourceGroupName, Stri
* @return properties of the blob container, including Id, resource name, resource type, Etag.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> createWithResponseAsync(
+ public Mono> createWithResponseAsync(
String resourceGroupName, String accountName, String containerName, BlobContainerInner blobContainer) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -567,7 +633,7 @@ public Mono> createWithResponseAsync(
context ->
service
.create(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -597,15 +663,17 @@ public Mono> createWithResponseAsync(
* @return properties of the blob container, including Id, resource name, resource type, Etag.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> createWithResponseAsync(
+ public Mono> createWithResponseAsync(
String resourceGroupName,
String accountName,
String containerName,
BlobContainerInner blobContainer,
Context context) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -630,7 +698,7 @@ public Mono> createWithResponseAsync(
}
return service
.create(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -662,7 +730,43 @@ public Mono createAsync(
String resourceGroupName, String accountName, String containerName, BlobContainerInner blobContainer) {
return createWithResponseAsync(resourceGroupName, accountName, containerName, blobContainer)
.flatMap(
- (SimpleResponse res) -> {
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Creates a new container under the specified account as described by request body. The container resource includes
+ * metadata and properties for that container. It does not include a list of the blobs contained by the container.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param blobContainer Properties of the blob container, including Id, resource name, resource type, Etag.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return properties of the blob container, including Id, resource name, resource type, Etag.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createAsync(
+ String resourceGroupName,
+ String accountName,
+ String containerName,
+ BlobContainerInner blobContainer,
+ Context context) {
+ return createWithResponseAsync(resourceGroupName, accountName, containerName, blobContainer, context)
+ .flatMap(
+ (Response res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
@@ -694,6 +798,34 @@ public BlobContainerInner create(
return createAsync(resourceGroupName, accountName, containerName, blobContainer).block();
}
+ /**
+ * Creates a new container under the specified account as described by request body. The container resource includes
+ * metadata and properties for that container. It does not include a list of the blobs contained by the container.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param blobContainer Properties of the blob container, including Id, resource name, resource type, Etag.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return properties of the blob container, including Id, resource name, resource type, Etag.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BlobContainerInner create(
+ String resourceGroupName,
+ String accountName,
+ String containerName,
+ BlobContainerInner blobContainer,
+ Context context) {
+ return createAsync(resourceGroupName, accountName, containerName, blobContainer, context).block();
+ }
+
/**
* Updates container properties as specified in request body. Properties not mentioned in the request will be
* unchanged. Update fails if the specified container doesn't already exist.
@@ -712,11 +844,13 @@ public BlobContainerInner create(
* @return properties of the blob container, including Id, resource name, resource type, Etag.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> updateWithResponseAsync(
+ public Mono> updateWithResponseAsync(
String resourceGroupName, String accountName, String containerName, BlobContainerInner blobContainer) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -744,7 +878,7 @@ public Mono> updateWithResponseAsync(
context ->
service
.update(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -774,15 +908,17 @@ public Mono> updateWithResponseAsync(
* @return properties of the blob container, including Id, resource name, resource type, Etag.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> updateWithResponseAsync(
+ public Mono> updateWithResponseAsync(
String resourceGroupName,
String accountName,
String containerName,
BlobContainerInner blobContainer,
Context context) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -807,7 +943,7 @@ public Mono> updateWithResponseAsync(
}
return service
.update(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -839,7 +975,43 @@ public Mono updateAsync(
String resourceGroupName, String accountName, String containerName, BlobContainerInner blobContainer) {
return updateWithResponseAsync(resourceGroupName, accountName, containerName, blobContainer)
.flatMap(
- (SimpleResponse res) -> {
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Updates container properties as specified in request body. Properties not mentioned in the request will be
+ * unchanged. Update fails if the specified container doesn't already exist.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param blobContainer Properties of the blob container, including Id, resource name, resource type, Etag.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return properties of the blob container, including Id, resource name, resource type, Etag.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono updateAsync(
+ String resourceGroupName,
+ String accountName,
+ String containerName,
+ BlobContainerInner blobContainer,
+ Context context) {
+ return updateWithResponseAsync(resourceGroupName, accountName, containerName, blobContainer, context)
+ .flatMap(
+ (Response res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
@@ -871,6 +1043,34 @@ public BlobContainerInner update(
return updateAsync(resourceGroupName, accountName, containerName, blobContainer).block();
}
+ /**
+ * Updates container properties as specified in request body. Properties not mentioned in the request will be
+ * unchanged. Update fails if the specified container doesn't already exist.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param blobContainer Properties of the blob container, including Id, resource name, resource type, Etag.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return properties of the blob container, including Id, resource name, resource type, Etag.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BlobContainerInner update(
+ String resourceGroupName,
+ String accountName,
+ String containerName,
+ BlobContainerInner blobContainer,
+ Context context) {
+ return updateAsync(resourceGroupName, accountName, containerName, blobContainer, context).block();
+ }
+
/**
* Gets properties of a specified container.
*
@@ -887,11 +1087,13 @@ public BlobContainerInner update(
* @return properties of a specified container.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getWithResponseAsync(
+ public Mono> getWithResponseAsync(
String resourceGroupName, String accountName, String containerName) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -914,7 +1116,7 @@ public Mono> getWithResponseAsync(
context ->
service
.get(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -941,11 +1143,13 @@ public Mono> getWithResponseAsync(
* @return properties of a specified container.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getWithResponseAsync(
+ public Mono> getWithResponseAsync(
String resourceGroupName, String accountName, String containerName, Context context) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -965,7 +1169,7 @@ public Mono> getWithResponseAsync(
}
return service
.get(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -993,7 +1197,37 @@ public Mono> getWithResponseAsync(
public Mono getAsync(String resourceGroupName, String accountName, String containerName) {
return getWithResponseAsync(resourceGroupName, accountName, containerName)
.flatMap(
- (SimpleResponse res) -> {
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Gets properties of a specified container.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return properties of a specified container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String accountName, String containerName, Context context) {
+ return getWithResponseAsync(resourceGroupName, accountName, containerName, context)
+ .flatMap(
+ (Response res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
@@ -1022,6 +1256,27 @@ public BlobContainerInner get(String resourceGroupName, String accountName, Stri
return getAsync(resourceGroupName, accountName, containerName).block();
}
+ /**
+ * Gets properties of a specified container.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return properties of a specified container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BlobContainerInner get(String resourceGroupName, String accountName, String containerName, Context context) {
+ return getAsync(resourceGroupName, accountName, containerName, context).block();
+ }
+
/**
* Deletes specified container under its account.
*
@@ -1040,9 +1295,11 @@ public BlobContainerInner get(String resourceGroupName, String accountName, Stri
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> deleteWithResponseAsync(
String resourceGroupName, String accountName, String containerName) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -1065,7 +1322,7 @@ public Mono> deleteWithResponseAsync(
context ->
service
.delete(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -1094,9 +1351,11 @@ public Mono> deleteWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> deleteWithResponseAsync(
String resourceGroupName, String accountName, String containerName, Context context) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -1116,7 +1375,7 @@ public Mono> deleteWithResponseAsync(
}
return service
.delete(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -1146,6 +1405,28 @@ public Mono deleteAsync(String resourceGroupName, String accountName, Stri
.flatMap((Response res) -> Mono.empty());
}
+ /**
+ * Deletes specified container under its account.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(String resourceGroupName, String accountName, String containerName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, accountName, containerName, context)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
/**
* Deletes specified container under its account.
*
@@ -1165,6 +1446,26 @@ public void delete(String resourceGroupName, String accountName, String containe
deleteAsync(resourceGroupName, accountName, containerName).block();
}
+ /**
+ * Deletes specified container under its account.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String accountName, String containerName, Context context) {
+ deleteAsync(resourceGroupName, accountName, containerName, context).block();
+ }
+
/**
* Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append
* pattern and does not clear out the existing tags that are not specified in the request.
@@ -1183,12 +1484,14 @@ public void delete(String resourceGroupName, String accountName, String containe
* @return the LegalHold property of a blob container.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> setLegalHoldWithResponseAsync(
+ public Mono> setLegalHoldWithResponseAsync(
String resourceGroupName, String accountName, String containerName, List tags) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
- }
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
if (resourceGroupName == null) {
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
@@ -1215,7 +1518,7 @@ public Mono> setLegalHoldWithResponseAsync(
context ->
service
.setLegalHold(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -1245,11 +1548,13 @@ public Mono> setLegalHoldWithResponseAsync(
* @return the LegalHold property of a blob container.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> setLegalHoldWithResponseAsync(
+ public Mono> setLegalHoldWithResponseAsync(
String resourceGroupName, String accountName, String containerName, List tags, Context context) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -1274,7 +1579,7 @@ public Mono> setLegalHoldWithResponseAsync(
legalHold.withTags(tags);
return service
.setLegalHold(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -1306,7 +1611,39 @@ public Mono setLegalHoldAsync(
String resourceGroupName, String accountName, String containerName, List tags) {
return setLegalHoldWithResponseAsync(resourceGroupName, accountName, containerName, tags)
.flatMap(
- (SimpleResponse res) -> {
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append
+ * pattern and does not clear out the existing tags that are not specified in the request.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the LegalHold property of a blob container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono setLegalHoldAsync(
+ String resourceGroupName, String accountName, String containerName, List tags, Context context) {
+ return setLegalHoldWithResponseAsync(resourceGroupName, accountName, containerName, tags, context)
+ .flatMap(
+ (Response res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
@@ -1338,6 +1675,30 @@ public LegalHoldInner setLegalHold(
return setLegalHoldAsync(resourceGroupName, accountName, containerName, tags).block();
}
+ /**
+ * Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append
+ * pattern and does not clear out the existing tags that are not specified in the request.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the LegalHold property of a blob container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LegalHoldInner setLegalHold(
+ String resourceGroupName, String accountName, String containerName, List tags, Context context) {
+ return setLegalHoldAsync(resourceGroupName, accountName, containerName, tags, context).block();
+ }
+
/**
* Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold
* clears out only the specified tags in the request.
@@ -1356,11 +1717,13 @@ public LegalHoldInner setLegalHold(
* @return the LegalHold property of a blob container.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> clearLegalHoldWithResponseAsync(
+ public Mono> clearLegalHoldWithResponseAsync(
String resourceGroupName, String accountName, String containerName, List tags) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -1388,7 +1751,7 @@ public Mono> clearLegalHoldWithResponseAsync(
context ->
service
.clearLegalHold(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -1418,11 +1781,13 @@ public Mono> clearLegalHoldWithResponseAsync(
* @return the LegalHold property of a blob container.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> clearLegalHoldWithResponseAsync(
+ public Mono> clearLegalHoldWithResponseAsync(
String resourceGroupName, String accountName, String containerName, List tags, Context context) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -1447,7 +1812,7 @@ public Mono> clearLegalHoldWithResponseAsync(
legalHold.withTags(tags);
return service
.clearLegalHold(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -1479,7 +1844,39 @@ public Mono clearLegalHoldAsync(
String resourceGroupName, String accountName, String containerName, List tags) {
return clearLegalHoldWithResponseAsync(resourceGroupName, accountName, containerName, tags)
.flatMap(
- (SimpleResponse res) -> {
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold
+ * clears out only the specified tags in the request.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the LegalHold property of a blob container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono clearLegalHoldAsync(
+ String resourceGroupName, String accountName, String containerName, List tags, Context context) {
+ return clearLegalHoldWithResponseAsync(resourceGroupName, accountName, containerName, tags, context)
+ .flatMap(
+ (Response res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
@@ -1511,6 +1908,30 @@ public LegalHoldInner clearLegalHold(
return clearLegalHoldAsync(resourceGroupName, accountName, containerName, tags).block();
}
+ /**
+ * Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold
+ * clears out only the specified tags in the request.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the LegalHold property of a blob container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LegalHoldInner clearLegalHold(
+ String resourceGroupName, String accountName, String containerName, List tags, Context context) {
+ return clearLegalHoldAsync(resourceGroupName, accountName, containerName, tags, context).block();
+ }
+
/**
* Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for
* this operation.
@@ -1545,9 +1966,11 @@ public LegalHoldInner clearLegalHold(
String ifMatch,
Integer immutabilityPeriodSinceCreationInDays,
Boolean allowProtectedAppendWrites) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -1578,7 +2001,7 @@ public LegalHoldInner clearLegalHold(
context ->
service
.createOrUpdateImmutabilityPolicy(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -1627,9 +2050,11 @@ public LegalHoldInner clearLegalHold(
Integer immutabilityPeriodSinceCreationInDays,
Boolean allowProtectedAppendWrites,
Context context) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -1657,7 +2082,7 @@ public LegalHoldInner clearLegalHold(
ImmutabilityPolicyInner parameters = parametersInternal;
return service
.createOrUpdateImmutabilityPolicy(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -1719,6 +2144,59 @@ public Mono createOrUpdateImmutabilityPolicyAsync(
});
}
+ /**
+ * Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for
+ * this operation.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used
+ * to apply the operation only if the immutability policy already exists. If omitted, this operation will always
+ * be applied.
+ * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the
+ * policy creation, in days.
+ * @param allowProtectedAppendWrites This property can only be changed for unlocked time-based retention policies.
+ * When enabled, new blocks can be written to an append blob while maintaining immutability protection and
+ * compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property
+ * cannot be changed with ExtendImmutabilityPolicy API.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateImmutabilityPolicyAsync(
+ String resourceGroupName,
+ String accountName,
+ String containerName,
+ String ifMatch,
+ Integer immutabilityPeriodSinceCreationInDays,
+ Boolean allowProtectedAppendWrites,
+ Context context) {
+ return createOrUpdateImmutabilityPolicyWithResponseAsync(
+ resourceGroupName,
+ accountName,
+ containerName,
+ ifMatch,
+ immutabilityPeriodSinceCreationInDays,
+ allowProtectedAppendWrites,
+ context)
+ .flatMap(
+ (BlobContainersCreateOrUpdateImmutabilityPolicyResponse res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
/**
* Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for
* this operation.
@@ -1762,6 +2240,52 @@ public ImmutabilityPolicyInner createOrUpdateImmutabilityPolicy(
.block();
}
+ /**
+ * Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for
+ * this operation.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used
+ * to apply the operation only if the immutability policy already exists. If omitted, this operation will always
+ * be applied.
+ * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the
+ * policy creation, in days.
+ * @param allowProtectedAppendWrites This property can only be changed for unlocked time-based retention policies.
+ * When enabled, new blocks can be written to an append blob while maintaining immutability protection and
+ * compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property
+ * cannot be changed with ExtendImmutabilityPolicy API.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ImmutabilityPolicyInner createOrUpdateImmutabilityPolicy(
+ String resourceGroupName,
+ String accountName,
+ String containerName,
+ String ifMatch,
+ Integer immutabilityPeriodSinceCreationInDays,
+ Boolean allowProtectedAppendWrites,
+ Context context) {
+ return createOrUpdateImmutabilityPolicyAsync(
+ resourceGroupName,
+ accountName,
+ containerName,
+ ifMatch,
+ immutabilityPeriodSinceCreationInDays,
+ allowProtectedAppendWrites,
+ context)
+ .block();
+ }
+
/**
* Gets the existing immutability policy along with the corresponding ETag in response headers and body.
*
@@ -1783,9 +2307,11 @@ public ImmutabilityPolicyInner createOrUpdateImmutabilityPolicy(
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono getImmutabilityPolicyWithResponseAsync(
String resourceGroupName, String accountName, String containerName, String ifMatch) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -1809,7 +2335,7 @@ public Mono getImmutabilityPolicyWi
context ->
service
.getImmutabilityPolicy(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -1843,9 +2369,11 @@ public Mono getImmutabilityPolicyWi
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono getImmutabilityPolicyWithResponseAsync(
String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -1866,7 +2394,7 @@ public Mono getImmutabilityPolicyWi
final String immutabilityPolicyName = "default";
return service
.getImmutabilityPolicy(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -1909,6 +2437,39 @@ public Mono getImmutabilityPolicyAsync(
});
}
+ /**
+ * Gets the existing immutability policy along with the corresponding ETag in response headers and body.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used
+ * to apply the operation only if the immutability policy already exists. If omitted, this operation will always
+ * be applied.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the existing immutability policy along with the corresponding ETag in response headers and body.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getImmutabilityPolicyAsync(
+ String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) {
+ return getImmutabilityPolicyWithResponseAsync(resourceGroupName, accountName, containerName, ifMatch, context)
+ .flatMap(
+ (BlobContainersGetImmutabilityPolicyResponse res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
/**
* Gets the existing immutability policy along with the corresponding ETag in response headers and body.
*
@@ -1964,6 +2525,31 @@ public ImmutabilityPolicyInner getImmutabilityPolicy(
return getImmutabilityPolicyAsync(resourceGroupName, accountName, containerName, ifMatch).block();
}
+ /**
+ * Gets the existing immutability policy along with the corresponding ETag in response headers and body.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used
+ * to apply the operation only if the immutability policy already exists. If omitted, this operation will always
+ * be applied.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the existing immutability policy along with the corresponding ETag in response headers and body.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ImmutabilityPolicyInner getImmutabilityPolicy(
+ String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) {
+ return getImmutabilityPolicyAsync(resourceGroupName, accountName, containerName, ifMatch, context).block();
+ }
+
/**
* Gets the existing immutability policy along with the corresponding ETag in response headers and body.
*
@@ -2010,9 +2596,11 @@ public ImmutabilityPolicyInner getImmutabilityPolicy(
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono deleteImmutabilityPolicyWithResponseAsync(
String resourceGroupName, String accountName, String containerName, String ifMatch) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -2039,7 +2627,7 @@ public Mono deleteImmutabilityPo
context ->
service
.deleteImmutabilityPolicy(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -2075,9 +2663,11 @@ public Mono deleteImmutabilityPo
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono deleteImmutabilityPolicyWithResponseAsync(
String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -2101,7 +2691,7 @@ public Mono deleteImmutabilityPo
final String immutabilityPolicyName = "default";
return service
.deleteImmutabilityPolicy(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -2146,6 +2736,42 @@ public Mono deleteImmutabilityPolicyAsync(
});
}
+ /**
+ * Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to
+ * 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only
+ * way is to delete the container after deleting all blobs inside the container.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used
+ * to apply the operation only if the immutability policy already exists. If omitted, this operation will always
+ * be applied.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteImmutabilityPolicyAsync(
+ String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) {
+ return deleteImmutabilityPolicyWithResponseAsync(
+ resourceGroupName, accountName, containerName, ifMatch, context)
+ .flatMap(
+ (BlobContainersDeleteImmutabilityPolicyResponse res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
/**
* Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to
* 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only
@@ -2172,6 +2798,33 @@ public ImmutabilityPolicyInner deleteImmutabilityPolicy(
return deleteImmutabilityPolicyAsync(resourceGroupName, accountName, containerName, ifMatch).block();
}
+ /**
+ * Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to
+ * 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only
+ * way is to delete the container after deleting all blobs inside the container.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used
+ * to apply the operation only if the immutability policy already exists. If omitted, this operation will always
+ * be applied.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ImmutabilityPolicyInner deleteImmutabilityPolicy(
+ String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) {
+ return deleteImmutabilityPolicyAsync(resourceGroupName, accountName, containerName, ifMatch, context).block();
+ }
+
/**
* Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is
* ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.
@@ -2194,9 +2847,11 @@ public ImmutabilityPolicyInner deleteImmutabilityPolicy(
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono lockImmutabilityPolicyWithResponseAsync(
String resourceGroupName, String accountName, String containerName, String ifMatch) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -2222,7 +2877,7 @@ public Mono lockImmutabilityPolicy
context ->
service
.lockImmutabilityPolicy(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -2256,9 +2911,11 @@ public Mono lockImmutabilityPolicy
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono lockImmutabilityPolicyWithResponseAsync(
String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -2281,7 +2938,7 @@ public Mono lockImmutabilityPolicy
}
return service
.lockImmutabilityPolicy(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -2324,6 +2981,40 @@ public Mono lockImmutabilityPolicyAsync(
});
}
+ /**
+ * Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is
+ * ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used
+ * to apply the operation only if the immutability policy already exists. If omitted, this operation will always
+ * be applied.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono lockImmutabilityPolicyAsync(
+ String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) {
+ return lockImmutabilityPolicyWithResponseAsync(resourceGroupName, accountName, containerName, ifMatch, context)
+ .flatMap(
+ (BlobContainersLockImmutabilityPolicyResponse res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
/**
* Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is
* ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.
@@ -2349,6 +3040,32 @@ public ImmutabilityPolicyInner lockImmutabilityPolicy(
return lockImmutabilityPolicyAsync(resourceGroupName, accountName, containerName, ifMatch).block();
}
+ /**
+ * Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is
+ * ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used
+ * to apply the operation only if the immutability policy already exists. If omitted, this operation will always
+ * be applied.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ImmutabilityPolicyInner lockImmutabilityPolicy(
+ String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) {
+ return lockImmutabilityPolicyAsync(resourceGroupName, accountName, containerName, ifMatch, context).block();
+ }
+
/**
* Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a
* Locked policy will be this action. ETag in If-Match is required for this operation.
@@ -2382,9 +3099,11 @@ public Mono extendImmutabilityPo
String ifMatch,
Integer immutabilityPeriodSinceCreationInDays,
Boolean allowProtectedAppendWrites) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -2417,7 +3136,7 @@ public Mono extendImmutabilityPo
context ->
service
.extendImmutabilityPolicy(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -2464,9 +3183,11 @@ public Mono extendImmutabilityPo
Integer immutabilityPeriodSinceCreationInDays,
Boolean allowProtectedAppendWrites,
Context context) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -2496,7 +3217,7 @@ public Mono extendImmutabilityPo
ImmutabilityPolicyInner parameters = parametersInternal;
return service
.extendImmutabilityPolicy(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -2557,6 +3278,59 @@ public Mono extendImmutabilityPolicyAsync(
});
}
+ /**
+ * Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a
+ * Locked policy will be this action. ETag in If-Match is required for this operation.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used
+ * to apply the operation only if the immutability policy already exists. If omitted, this operation will always
+ * be applied.
+ * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the
+ * policy creation, in days.
+ * @param allowProtectedAppendWrites This property can only be changed for unlocked time-based retention policies.
+ * When enabled, new blocks can be written to an append blob while maintaining immutability protection and
+ * compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property
+ * cannot be changed with ExtendImmutabilityPolicy API.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono extendImmutabilityPolicyAsync(
+ String resourceGroupName,
+ String accountName,
+ String containerName,
+ String ifMatch,
+ Integer immutabilityPeriodSinceCreationInDays,
+ Boolean allowProtectedAppendWrites,
+ Context context) {
+ return extendImmutabilityPolicyWithResponseAsync(
+ resourceGroupName,
+ accountName,
+ containerName,
+ ifMatch,
+ immutabilityPeriodSinceCreationInDays,
+ allowProtectedAppendWrites,
+ context)
+ .flatMap(
+ (BlobContainersExtendImmutabilityPolicyResponse res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
/**
* Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a
* Locked policy will be this action. ETag in If-Match is required for this operation.
@@ -2600,6 +3374,52 @@ public ImmutabilityPolicyInner extendImmutabilityPolicy(
.block();
}
+ /**
+ * Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a
+ * Locked policy will be this action. ETag in If-Match is required for this operation.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used
+ * to apply the operation only if the immutability policy already exists. If omitted, this operation will always
+ * be applied.
+ * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the
+ * policy creation, in days.
+ * @param allowProtectedAppendWrites This property can only be changed for unlocked time-based retention policies.
+ * When enabled, new blocks can be written to an append blob while maintaining immutability protection and
+ * compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property
+ * cannot be changed with ExtendImmutabilityPolicy API.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ImmutabilityPolicyInner extendImmutabilityPolicy(
+ String resourceGroupName,
+ String accountName,
+ String containerName,
+ String ifMatch,
+ Integer immutabilityPeriodSinceCreationInDays,
+ Boolean allowProtectedAppendWrites,
+ Context context) {
+ return extendImmutabilityPolicyAsync(
+ resourceGroupName,
+ accountName,
+ containerName,
+ ifMatch,
+ immutabilityPeriodSinceCreationInDays,
+ allowProtectedAppendWrites,
+ context)
+ .block();
+ }
+
/**
* The Lease Container operation establishes and manages a lock on a container for delete operations. The lock
* duration can be 15 to 60 seconds, or can be infinite.
@@ -2618,11 +3438,13 @@ public ImmutabilityPolicyInner extendImmutabilityPolicy(
* @return lease Container response schema.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> leaseWithResponseAsync(
+ public Mono> leaseWithResponseAsync(
String resourceGroupName, String accountName, String containerName, LeaseContainerRequest parameters) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -2648,7 +3470,7 @@ public Mono> leaseWithResponseAsync(
context ->
service
.lease(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -2678,15 +3500,17 @@ public Mono> leaseWithResponseAsync(
* @return lease Container response schema.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> leaseWithResponseAsync(
+ public Mono> leaseWithResponseAsync(
String resourceGroupName,
String accountName,
String containerName,
LeaseContainerRequest parameters,
Context context) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -2709,7 +3533,7 @@ public Mono> leaseWithResponseAsync(
}
return service
.lease(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
containerName,
@@ -2741,7 +3565,43 @@ public Mono leaseAsync(
String resourceGroupName, String accountName, String containerName, LeaseContainerRequest parameters) {
return leaseWithResponseAsync(resourceGroupName, accountName, containerName, parameters)
.flatMap(
- (SimpleResponse res) -> {
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * The Lease Container operation establishes and manages a lock on a container for delete operations. The lock
+ * duration can be 15 to 60 seconds, or can be infinite.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param parameters Lease Container request schema.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return lease Container response schema.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono leaseAsync(
+ String resourceGroupName,
+ String accountName,
+ String containerName,
+ LeaseContainerRequest parameters,
+ Context context) {
+ return leaseWithResponseAsync(resourceGroupName, accountName, containerName, parameters, context)
+ .flatMap(
+ (Response res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
@@ -2773,7 +3633,7 @@ public Mono leaseAsync(
final Context context = null;
return leaseWithResponseAsync(resourceGroupName, accountName, containerName, parameters)
.flatMap(
- (SimpleResponse res) -> {
+ (Response res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
@@ -2805,6 +3665,34 @@ public LeaseContainerResponseInner lease(
return leaseAsync(resourceGroupName, accountName, containerName, parameters).block();
}
+ /**
+ * The Lease Container operation establishes and manages a lock on a container for delete operations. The lock
+ * duration can be 15 to 60 seconds, or can be infinite.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob container names
+ * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every
+ * dash (-) character must be immediately preceded and followed by a letter or number.
+ * @param parameters Lease Container request schema.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return lease Container response schema.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LeaseContainerResponseInner lease(
+ String resourceGroupName,
+ String accountName,
+ String containerName,
+ LeaseContainerRequest parameters,
+ Context context) {
+ return leaseAsync(resourceGroupName, accountName, containerName, parameters, context).block();
+ }
+
/**
* The Lease Container operation establishes and manages a lock on a container for delete operations. The lock
* duration can be 15 to 60 seconds, or can be infinite.
diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServicesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java
similarity index 72%
rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServicesInner.java
rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java
index 5af453bf6645..5a1545169b3f 100644
--- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServicesInner.java
+++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.management.storage.models;
+package com.azure.management.storage.fluent;
import com.azure.core.annotation.BodyParam;
import com.azure.core.annotation.ExpectedResponses;
@@ -21,30 +21,33 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.PagedResponse;
import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.RestProxy;
-import com.azure.core.http.rest.SimpleResponse;
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.management.storage.StorageManagementClient;
+import com.azure.management.storage.fluent.inner.BlobServiceItemsInner;
+import com.azure.management.storage.fluent.inner.BlobServicePropertiesInner;
import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in BlobServices. */
-public final class BlobServicesInner {
- private final ClientLogger logger = new ClientLogger(BlobServicesInner.class);
+public final class BlobServicesClient {
+ private final ClientLogger logger = new ClientLogger(BlobServicesClient.class);
/** The proxy service used to perform REST calls. */
private final BlobServicesService service;
/** The service client containing this operation class. */
- private final StorageManagementClientImpl client;
+ private final StorageManagementClient client;
/**
- * Initializes an instance of BlobServicesInner.
+ * Initializes an instance of BlobServicesClient.
*
* @param client the instance of the service client containing this operation class.
*/
- BlobServicesInner(StorageManagementClientImpl client) {
+ public BlobServicesClient(StorageManagementClient client) {
this.service =
RestProxy.create(BlobServicesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
@@ -63,8 +66,8 @@ private interface BlobServicesService {
+ "/storageAccounts/{accountName}/blobServices")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(
- @HostParam("$host") String host,
+ Mono> list(
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@QueryParam("api-version") String apiVersion,
@@ -77,8 +80,8 @@ Mono> list(
+ "/storageAccounts/{accountName}/blobServices/{BlobServicesName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> setServiceProperties(
- @HostParam("$host") String host,
+ Mono> setServiceProperties(
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@QueryParam("api-version") String apiVersion,
@@ -93,8 +96,8 @@ Mono> setServiceProperties(
+ "/storageAccounts/{accountName}/blobServices/{BlobServicesName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getServiceProperties(
- @HostParam("$host") String host,
+ Mono> getServiceProperties(
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@QueryParam("api-version") String apiVersion,
@@ -118,9 +121,11 @@ Mono> getServiceProperties(
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> listSinglePageAsync(
String resourceGroupName, String accountName) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -140,7 +145,7 @@ public Mono> listSinglePageAsync(
context ->
service
.list(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
this.client.getApiVersion(),
@@ -169,9 +174,11 @@ public Mono> listSinglePageAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> listSinglePageAsync(
String resourceGroupName, String accountName, Context context) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -188,7 +195,7 @@ public Mono> listSinglePageAsync(
}
return service
.list(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
this.client.getApiVersion(),
@@ -253,6 +260,25 @@ public PagedIterable list(String resourceGroupName,
return new PagedIterable<>(listAsync(resourceGroupName, accountName));
}
+ /**
+ * List blob services of storage account. It returns a collection of one object named default.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String accountName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, accountName, context));
+ }
+
/**
* Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
@@ -268,11 +294,13 @@ public PagedIterable list(String resourceGroupName,
* @return the properties of a storage account’s Blob service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> setServicePropertiesWithResponseAsync(
+ public Mono> setServicePropertiesWithResponseAsync(
String resourceGroupName, String accountName, BlobServicePropertiesInner parameters) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -298,7 +326,7 @@ public Mono> setServicePropertiesWith
context ->
service
.setServiceProperties(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
this.client.getApiVersion(),
@@ -325,11 +353,13 @@ public Mono> setServicePropertiesWith
* @return the properties of a storage account’s Blob service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> setServicePropertiesWithResponseAsync(
+ public Mono> setServicePropertiesWithResponseAsync(
String resourceGroupName, String accountName, BlobServicePropertiesInner parameters, Context context) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -352,7 +382,7 @@ public Mono> setServicePropertiesWith
final String blobServicesName = "default";
return service
.setServiceProperties(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
this.client.getApiVersion(),
@@ -381,7 +411,36 @@ public Mono setServicePropertiesAsync(
String resourceGroupName, String accountName, BlobServicePropertiesInner parameters) {
return setServicePropertiesWithResponseAsync(resourceGroupName, accountName, parameters)
.flatMap(
- (SimpleResponse res) -> {
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS
+ * (Cross-Origin Resource Sharing) rules.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param parameters The properties of a storage account’s Blob service.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a storage account’s Blob service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono setServicePropertiesAsync(
+ String resourceGroupName, String accountName, BlobServicePropertiesInner parameters, Context context) {
+ return setServicePropertiesWithResponseAsync(resourceGroupName, accountName, parameters, context)
+ .flatMap(
+ (Response res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
@@ -410,6 +469,27 @@ public BlobServicePropertiesInner setServiceProperties(
return setServicePropertiesAsync(resourceGroupName, accountName, parameters).block();
}
+ /**
+ * Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS
+ * (Cross-Origin Resource Sharing) rules.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param parameters The properties of a storage account’s Blob service.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a storage account’s Blob service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BlobServicePropertiesInner setServiceProperties(
+ String resourceGroupName, String accountName, BlobServicePropertiesInner parameters, Context context) {
+ return setServicePropertiesAsync(resourceGroupName, accountName, parameters, context).block();
+ }
+
/**
* Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
@@ -425,11 +505,13 @@ public BlobServicePropertiesInner setServiceProperties(
* (Cross-Origin Resource Sharing) rules.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getServicePropertiesWithResponseAsync(
+ public Mono> getServicePropertiesWithResponseAsync(
String resourceGroupName, String accountName) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -450,7 +532,7 @@ public Mono> getServicePropertiesWith
context ->
service
.getServiceProperties(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
this.client.getApiVersion(),
@@ -476,11 +558,13 @@ public Mono> getServicePropertiesWith
* (Cross-Origin Resource Sharing) rules.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getServicePropertiesWithResponseAsync(
+ public Mono> getServicePropertiesWithResponseAsync(
String resourceGroupName, String accountName, Context context) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -498,7 +582,7 @@ public Mono> getServicePropertiesWith
final String blobServicesName = "default";
return service
.getServiceProperties(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
this.client.getApiVersion(),
@@ -525,7 +609,36 @@ public Mono> getServicePropertiesWith
public Mono getServicePropertiesAsync(String resourceGroupName, String accountName) {
return getServicePropertiesWithResponseAsync(resourceGroupName, accountName)
.flatMap(
- (SimpleResponse res) -> {
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS
+ * (Cross-Origin Resource Sharing) rules.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS
+ * (Cross-Origin Resource Sharing) rules.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getServicePropertiesAsync(
+ String resourceGroupName, String accountName, Context context) {
+ return getServicePropertiesWithResponseAsync(resourceGroupName, accountName, context)
+ .flatMap(
+ (Response res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
@@ -552,4 +665,25 @@ public Mono getServicePropertiesAsync(String resourc
public BlobServicePropertiesInner getServiceProperties(String resourceGroupName, String accountName) {
return getServicePropertiesAsync(resourceGroupName, accountName).block();
}
+
+ /**
+ * Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS
+ * (Cross-Origin Resource Sharing) rules.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage account names
+ * must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS
+ * (Cross-Origin Resource Sharing) rules.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BlobServicePropertiesInner getServiceProperties(
+ String resourceGroupName, String accountName, Context context) {
+ return getServicePropertiesAsync(resourceGroupName, accountName, context).block();
+ }
}
diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java
similarity index 73%
rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopesInner.java
rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java
index 2f60ba023665..3de295104b36 100644
--- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopesInner.java
+++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.management.storage.models;
+package com.azure.management.storage.fluent;
import com.azure.core.annotation.BodyParam;
import com.azure.core.annotation.ExpectedResponses;
@@ -22,30 +22,33 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.PagedResponse;
import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.RestProxy;
-import com.azure.core.http.rest.SimpleResponse;
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.management.storage.StorageManagementClient;
+import com.azure.management.storage.fluent.inner.EncryptionScopeInner;
+import com.azure.management.storage.fluent.inner.EncryptionScopeListResultInner;
import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in EncryptionScopes. */
-public final class EncryptionScopesInner {
- private final ClientLogger logger = new ClientLogger(EncryptionScopesInner.class);
+public final class EncryptionScopesClient {
+ private final ClientLogger logger = new ClientLogger(EncryptionScopesClient.class);
/** The proxy service used to perform REST calls. */
private final EncryptionScopesService service;
/** The service client containing this operation class. */
- private final StorageManagementClientImpl client;
+ private final StorageManagementClient client;
/**
- * Initializes an instance of EncryptionScopesInner.
+ * Initializes an instance of EncryptionScopesClient.
*
* @param client the instance of the service client containing this operation class.
*/
- EncryptionScopesInner(StorageManagementClientImpl client) {
+ public EncryptionScopesClient(StorageManagementClient client) {
this.service =
RestProxy.create(EncryptionScopesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
@@ -64,8 +67,8 @@ private interface EncryptionScopesService {
+ "/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}")
@ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> put(
- @HostParam("$host") String host,
+ Mono> put(
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@QueryParam("api-version") String apiVersion,
@@ -80,8 +83,8 @@ Mono> put(
+ "/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> patch(
- @HostParam("$host") String host,
+ Mono> patch(
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@QueryParam("api-version") String apiVersion,
@@ -96,8 +99,8 @@ Mono> patch(
+ "/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(
- @HostParam("$host") String host,
+ Mono> get(
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@QueryParam("api-version") String apiVersion,
@@ -111,8 +114,8 @@ Mono> get(
+ "/storageAccounts/{accountName}/encryptionScopes")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(
- @HostParam("$host") String host,
+ Mono> list(
+ @HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@QueryParam("api-version") String apiVersion,
@@ -123,7 +126,7 @@ Mono> list(
@Get("{nextLink}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listNext(
+ Mono> listNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, Context context);
}
@@ -146,14 +149,16 @@ Mono> listNext(
* @return the Encryption Scope resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> putWithResponseAsync(
+ public Mono> putWithResponseAsync(
String resourceGroupName,
String accountName,
String encryptionScopeName,
EncryptionScopeInner encryptionScope) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -183,7 +188,7 @@ public Mono> putWithResponseAsync(
context ->
service
.put(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
this.client.getApiVersion(),
@@ -214,15 +219,17 @@ public Mono> putWithResponseAsync(
* @return the Encryption Scope resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> putWithResponseAsync(
+ public Mono> putWithResponseAsync(
String resourceGroupName,
String accountName,
String encryptionScopeName,
EncryptionScopeInner encryptionScope,
Context context) {
- if (this.client.getHost() == null) {
+ if (this.client.getEndpoint() == null) {
return Mono
- .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null."));
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -249,7 +256,7 @@ public Mono> putWithResponseAsync(
}
return service
.put(
- this.client.getHost(),
+ this.client.getEndpoint(),
resourceGroupName,
accountName,
this.client.getApiVersion(),
@@ -285,7 +292,44 @@ public Mono