diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 72e66728309b..a5cc100497ff 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -540,7 +540,6 @@ io.clientcore:optional-dependency-tests;1.0.0-beta.1;1.0.0-beta.1 unreleased_com.azure.v2:azure-core;2.0.0-beta.1 unreleased_com.azure.v2:azure-identity;2.0.0-beta.1 unreleased_io.clientcore:http-netty4;1.0.0-beta.1 -unreleased_com.azure.resourcemanager:azure-resourcemanager-storage;2.54.0-beta.1 unreleased_com.azure.resourcemanager:azure-resourcemanager-test;2.0.0-beta.2 # Released Beta dependencies: Copy the entry from above, prepend "beta_", remove the current diff --git a/sdk/resourcemanager/api-specs.json b/sdk/resourcemanager/api-specs.json index 078b0b335a8c..c2eb72bba0c2 100644 --- a/sdk/resourcemanager/api-specs.json +++ b/sdk/resourcemanager/api-specs.json @@ -265,7 +265,7 @@ "dir": "../storage/azure-resourcemanager-storage", "source": "specification/storage/resource-manager/readme.md", "package": "com.azure.resourcemanager.storage", - "args": "--tag=package-2025-01 --modelerfour.lenient-model-deduplication --rename-model=AllowedMethods:CorsRuleAllowedMethodsItem,AccountType:ActiveDirectoryPropertiesAccountType --property-include-always=EncryptionIdentity.encryptionUserAssignedIdentity --enable-sync-stack=false" + "args": "--tag=package-2024-01 --modelerfour.lenient-model-deduplication --rename-model=AllowedMethods:CorsRuleAllowedMethodsItem,AccountType:ActiveDirectoryPropertiesAccountType --property-include-always=EncryptionIdentity.encryptionUserAssignedIdentity --enable-sync-stack=false" }, "storage-hybrid": { "dir": "../resourcemanagerhybrid/azure-resourcemanager-storage", diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/pom.xml b/sdk/resourcemanager/azure-resourcemanager-appservice/pom.xml index b83381c19d0b..f0e0cb29ced8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/pom.xml @@ -69,7 +69,7 @@ com.azure.resourcemanager azure-resourcemanager-storage - 2.54.0-beta.1 + 2.53.1 com.azure.resourcemanager diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/pom.xml b/sdk/resourcemanager/azure-resourcemanager-compute/pom.xml index 8e1805c712c8..d4f39a90285e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager-compute/pom.xml @@ -76,7 +76,7 @@ com.azure.resourcemanager azure-resourcemanager-storage - 2.54.0-beta.1 + 2.53.1 com.azure.resourcemanager diff --git a/sdk/resourcemanager/azure-resourcemanager-containerinstance/pom.xml b/sdk/resourcemanager/azure-resourcemanager-containerinstance/pom.xml index cfd27e6626ea..75bb024440c3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerinstance/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager-containerinstance/pom.xml @@ -65,7 +65,7 @@ com.azure.resourcemanager azure-resourcemanager-storage - 2.54.0-beta.1 + 2.53.1 com.azure.resourcemanager diff --git a/sdk/resourcemanager/azure-resourcemanager-cosmos/pom.xml b/sdk/resourcemanager/azure-resourcemanager-cosmos/pom.xml index 3a81b63d4aec..35070f58ff09 100644 --- a/sdk/resourcemanager/azure-resourcemanager-cosmos/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager-cosmos/pom.xml @@ -73,7 +73,7 @@ com.azure.resourcemanager azure-resourcemanager-storage - 2.54.0-beta.1 + 2.53.1 test diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/pom.xml b/sdk/resourcemanager/azure-resourcemanager-eventhubs/pom.xml index 205ad40c9f37..94c32c114411 100644 --- a/sdk/resourcemanager/azure-resourcemanager-eventhubs/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/pom.xml @@ -64,7 +64,7 @@ com.azure.resourcemanager azure-resourcemanager-storage - 2.54.0-beta.1 + 2.53.1 org.junit.jupiter diff --git a/sdk/resourcemanager/azure-resourcemanager-monitor/pom.xml b/sdk/resourcemanager/azure-resourcemanager-monitor/pom.xml index 75aa00290217..2ccaf1e16320 100644 --- a/sdk/resourcemanager/azure-resourcemanager-monitor/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager-monitor/pom.xml @@ -96,7 +96,7 @@ com.azure.resourcemanager azure-resourcemanager-storage - 2.54.0-beta.1 + 2.53.1 test diff --git a/sdk/resourcemanager/azure-resourcemanager-redis/pom.xml b/sdk/resourcemanager/azure-resourcemanager-redis/pom.xml index 866c7e023345..178d1c5a892e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-redis/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager-redis/pom.xml @@ -84,7 +84,7 @@ com.azure.resourcemanager azure-resourcemanager-storage - 2.54.0-beta.1 + 2.53.1 test diff --git a/sdk/resourcemanager/azure-resourcemanager-sql/pom.xml b/sdk/resourcemanager/azure-resourcemanager-sql/pom.xml index 9a0004cb8eb5..4e012ea5b395 100644 --- a/sdk/resourcemanager/azure-resourcemanager-sql/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager-sql/pom.xml @@ -68,7 +68,7 @@ com.azure.resourcemanager azure-resourcemanager-storage - 2.54.0-beta.1 + 2.53.1 org.junit.jupiter diff --git a/sdk/resourcemanager/azure-resourcemanager/pom.xml b/sdk/resourcemanager/azure-resourcemanager/pom.xml index 22d9cddf311e..83a97c7672f4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager/pom.xml @@ -86,7 +86,7 @@ com.azure.resourcemanager azure-resourcemanager-storage - 2.54.0-beta.1 + 2.53.1 com.azure.resourcemanager diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersClearLegalHoldSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersClearLegalHoldSamples.java index b8987bbe60b8..41ea6fb36fc8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersClearLegalHoldSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersClearLegalHoldSamples.java @@ -13,7 +13,7 @@ public final class BlobContainersClearLegalHoldSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersClearLegalHold. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersClearLegalHold. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersCreateOrUpdateImmutabilityPolicySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersCreateOrUpdateImmutabilityPolicySamples.java index 1454e3f51291..640181c63b6c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersCreateOrUpdateImmutabilityPolicySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersCreateOrUpdateImmutabilityPolicySamples.java @@ -11,7 +11,7 @@ */ public final class BlobContainersCreateOrUpdateImmutabilityPolicySamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * BlobContainersPutImmutabilityPolicy.json */ /** @@ -31,7 +31,7 @@ public static void createOrUpdateImmutabilityPolicy(com.azure.resourcemanager.Az } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * BlobContainersPutImmutabilityPolicyAllowProtectedAppendWritesAll.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersCreateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersCreateSamples.java index bdbc2bf14ce5..36f4c1504675 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersCreateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersCreateSamples.java @@ -12,7 +12,7 @@ */ public final class BlobContainersCreateSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * BlobContainersPutDefaultEncryptionScope.json */ /** @@ -32,7 +32,7 @@ public static void putContainerWithDefaultEncryptionScope(com.azure.resourcemana } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * BlobContainersPutObjectLevelWorm.json */ /** @@ -52,7 +52,7 @@ public static void putContainerWithObjectLevelWorm(com.azure.resourcemanager.Azu /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersPut.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersPut.json */ /** * Sample code: PutContainers. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersDeleteImmutabilityPolicySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersDeleteImmutabilityPolicySamples.java index 305cfded4af1..d8f5b7c8731f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersDeleteImmutabilityPolicySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersDeleteImmutabilityPolicySamples.java @@ -9,7 +9,7 @@ */ public final class BlobContainersDeleteImmutabilityPolicySamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * BlobContainersDeleteImmutabilityPolicy.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersDeleteSamples.java index a99015bb3072..e71fa1a1a153 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersDeleteSamples.java @@ -10,7 +10,7 @@ public final class BlobContainersDeleteSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersDelete.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersDelete.json */ /** * Sample code: DeleteContainers. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersExtendImmutabilityPolicySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersExtendImmutabilityPolicySamples.java index 502b7bd20812..673328f24ad3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersExtendImmutabilityPolicySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersExtendImmutabilityPolicySamples.java @@ -11,7 +11,7 @@ */ public final class BlobContainersExtendImmutabilityPolicySamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * BlobContainersExtendImmutabilityPolicy.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersGetImmutabilityPolicySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersGetImmutabilityPolicySamples.java index 99075869fc69..e4a5fd20c28f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersGetImmutabilityPolicySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersGetImmutabilityPolicySamples.java @@ -9,7 +9,7 @@ */ public final class BlobContainersGetImmutabilityPolicySamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * BlobContainersGetImmutabilityPolicy.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersGetSamples.java index 777b3f68caee..82fbf728eabc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersGetSamples.java @@ -10,7 +10,7 @@ public final class BlobContainersGetSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersGet.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersGet.json */ /** * Sample code: GetContainers. @@ -26,7 +26,7 @@ public static void getContainers(com.azure.resourcemanager.AzureResourceManager } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * BlobContainersGetWithAllowProtectedAppendWritesAll.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersLeaseSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersLeaseSamples.java index 6dd8cd2bd977..4b5db8ceb97e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersLeaseSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersLeaseSamples.java @@ -13,7 +13,7 @@ public final class BlobContainersLeaseSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersLease_Break. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersLease_Break. * json */ /** @@ -34,7 +34,7 @@ public static void breakALeaseOnAContainer(com.azure.resourcemanager.AzureResour /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersLease_Acquire. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersLease_Acquire. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersListSamples.java index c31e3d62d4a1..3c1362be6597 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersListSamples.java @@ -12,7 +12,7 @@ public final class BlobContainersListSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersList.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersList.json */ /** * Sample code: ListContainers. @@ -29,7 +29,7 @@ public static void listContainers(com.azure.resourcemanager.AzureResourceManager /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/DeletedBlobContainersList. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/DeletedBlobContainersList. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersLockImmutabilityPolicySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersLockImmutabilityPolicySamples.java index f82cec0df807..f3886464ed83 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersLockImmutabilityPolicySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersLockImmutabilityPolicySamples.java @@ -9,7 +9,7 @@ */ public final class BlobContainersLockImmutabilityPolicySamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * BlobContainersLockImmutabilityPolicy.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersObjectLevelWormSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersObjectLevelWormSamples.java index 0ea134a68519..1133bcc742da 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersObjectLevelWormSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersObjectLevelWormSamples.java @@ -9,7 +9,7 @@ */ public final class BlobContainersObjectLevelWormSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * ObjectLevelWormContainerMigration.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersSetLegalHoldSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersSetLegalHoldSamples.java index 67aa5a8390c8..c5e11f205e88 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersSetLegalHoldSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersSetLegalHoldSamples.java @@ -13,7 +13,7 @@ public final class BlobContainersSetLegalHoldSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersSetLegalHold. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersSetLegalHold. * json */ /** @@ -31,7 +31,7 @@ public static void setLegalHoldContainers(com.azure.resourcemanager.AzureResourc } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * BlobContainersSetLegalHoldAllowProtectedAppendWritesAll.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersUpdateSamples.java index 137e3f0aa489..164fd99484c3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobContainersUpdateSamples.java @@ -15,7 +15,7 @@ public final class BlobContainersUpdateSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersPatch.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersPatch.json */ /** * Sample code: UpdateContainers. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobInventoryPoliciesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobInventoryPoliciesCreateOrUpdateSamples.java index 47e0f1542335..674a32cba5d0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobInventoryPoliciesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobInventoryPoliciesCreateOrUpdateSamples.java @@ -22,7 +22,7 @@ */ public final class BlobInventoryPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountSetBlobInventoryPolicyIncludeDeleteAndNewSchemaForNonHnsAccount.json */ /** @@ -84,7 +84,7 @@ public static void storageAccountSetBlobInventoryPolicyIncludeDeleteAndNewSchema } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountSetBlobInventoryPolicy.json */ /** @@ -138,7 +138,7 @@ public static void storageAccountSetBlobInventoryPolicy(com.azure.resourcemanage } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountSetBlobInventoryPolicyIncludeDeleteAndNewSchemaForHnsAccount.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobInventoryPoliciesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobInventoryPoliciesDeleteSamples.java index f24947307e27..a3c3aaa20713 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobInventoryPoliciesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobInventoryPoliciesDeleteSamples.java @@ -11,7 +11,7 @@ */ public final class BlobInventoryPoliciesDeleteSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountDeleteBlobInventoryPolicy.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobInventoryPoliciesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobInventoryPoliciesGetSamples.java index 4691fbc02fe7..02c9cb7f62c0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobInventoryPoliciesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobInventoryPoliciesGetSamples.java @@ -11,7 +11,7 @@ */ public final class BlobInventoryPoliciesGetSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountGetBlobInventoryPolicy.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobInventoryPoliciesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobInventoryPoliciesListSamples.java index 4fc9d76751a8..b5dab5b59a83 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobInventoryPoliciesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobInventoryPoliciesListSamples.java @@ -9,7 +9,7 @@ */ public final class BlobInventoryPoliciesListSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountListBlobInventoryPolicy.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobServicesGetServicePropertiesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobServicesGetServicePropertiesSamples.java index 995220132d53..2dc81c0a255d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobServicesGetServicePropertiesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobServicesGetServicePropertiesSamples.java @@ -10,7 +10,7 @@ public final class BlobServicesGetServicePropertiesSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobServicesGet.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobServicesGet.json */ /** * Sample code: GetBlobServices. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobServicesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobServicesListSamples.java index 96bb5f877f4d..9e008a7052f0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobServicesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobServicesListSamples.java @@ -10,7 +10,7 @@ public final class BlobServicesListSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobServicesList.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobServicesList.json */ /** * Sample code: ListBlobServices. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobServicesSetServicePropertiesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobServicesSetServicePropertiesSamples.java index e580062e98f8..d48f7bbf1296 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobServicesSetServicePropertiesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/BlobServicesSetServicePropertiesSamples.java @@ -20,7 +20,7 @@ public final class BlobServicesSetServicePropertiesSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobServicesPut.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobServicesPut.json */ /** * Sample code: PutBlobServices. @@ -61,7 +61,7 @@ public static void putBlobServices(com.azure.resourcemanager.AzureResourceManage } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * BlobServicesPutAllowPermanentDelete.json */ /** @@ -83,7 +83,7 @@ public static void blobServicesPutAllowPermanentDelete(com.azure.resourcemanager } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * BlobServicesPutLastAccessTimeBasedTracking.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/DeletedAccountsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/DeletedAccountsGetSamples.java index 76edd1009c3e..7adb9f266280 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/DeletedAccountsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/DeletedAccountsGetSamples.java @@ -10,7 +10,7 @@ public final class DeletedAccountsGetSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/DeletedAccountGet.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/DeletedAccountGet.json */ /** * Sample code: DeletedAccountGet. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/DeletedAccountsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/DeletedAccountsListSamples.java index c58d523403e9..db75068ff9c0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/DeletedAccountsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/DeletedAccountsListSamples.java @@ -10,7 +10,7 @@ public final class DeletedAccountsListSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/DeletedAccountList.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/DeletedAccountList.json */ /** * Sample code: DeletedAccountList. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/EncryptionScopesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/EncryptionScopesGetSamples.java index 4862d023655f..ec692f7d8d83 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/EncryptionScopesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/EncryptionScopesGetSamples.java @@ -9,7 +9,7 @@ */ public final class EncryptionScopesGetSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountGetEncryptionScope.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/EncryptionScopesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/EncryptionScopesListSamples.java index 9b255018b8f4..685a02602222 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/EncryptionScopesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/EncryptionScopesListSamples.java @@ -9,7 +9,7 @@ */ public final class EncryptionScopesListSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountEncryptionScopeList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/EncryptionScopesPatchSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/EncryptionScopesPatchSamples.java index 372252386c77..88b7196e168c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/EncryptionScopesPatchSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/EncryptionScopesPatchSamples.java @@ -13,7 +13,7 @@ */ public final class EncryptionScopesPatchSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountPatchEncryptionScope.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/EncryptionScopesPutSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/EncryptionScopesPutSamples.java index 982d0ae07b2a..ad377917a205 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/EncryptionScopesPutSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/EncryptionScopesPutSamples.java @@ -11,7 +11,7 @@ */ public final class EncryptionScopesPutSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountPutEncryptionScopeWithInfrastructureEncryption.json */ /** @@ -30,7 +30,7 @@ public static void storageAccountPutEncryptionScopeWithInfrastructureEncryption( } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountPutEncryptionScope.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesGetServicePropertiesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesGetServicePropertiesSamples.java index b20ba30d9773..57ea598bed0f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesGetServicePropertiesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesGetServicePropertiesSamples.java @@ -10,7 +10,7 @@ public final class FileServicesGetServicePropertiesSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileServicesGet.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileServicesGet.json */ /** * Sample code: GetFileServices. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesGetServiceUsageSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesGetServiceUsageSamples.java index 3908d1b16e8b..096502aeecef 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesGetServiceUsageSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesGetServiceUsageSamples.java @@ -10,7 +10,7 @@ public final class FileServicesGetServiceUsageSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileServicesGetUsage.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileServicesGetUsage.json */ /** * Sample code: GetFileServiceUsage. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesListSamples.java index ff7084c792e5..655086628997 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesListSamples.java @@ -10,7 +10,7 @@ public final class FileServicesListSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileServicesList.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileServicesList.json */ /** * Sample code: ListFileServices. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesListServiceUsagesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesListServiceUsagesSamples.java index fe5eac8e0c56..df6823e0780a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesListServiceUsagesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesListServiceUsagesSamples.java @@ -10,7 +10,7 @@ public final class FileServicesListServiceUsagesSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileServicesListUsages.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileServicesListUsages.json */ /** * Sample code: ListFileServiceUsages. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesSetServicePropertiesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesSetServicePropertiesSamples.java index 4f75db3385a0..98cbd55886ee 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesSetServicePropertiesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileServicesSetServicePropertiesSamples.java @@ -8,9 +8,7 @@ import com.azure.resourcemanager.storage.models.CorsRule; import com.azure.resourcemanager.storage.models.CorsRuleAllowedMethodsItem; import com.azure.resourcemanager.storage.models.CorsRules; -import com.azure.resourcemanager.storage.models.EncryptionInTransit; import com.azure.resourcemanager.storage.models.Multichannel; -import com.azure.resourcemanager.storage.models.NfsSetting; import com.azure.resourcemanager.storage.models.ProtocolSettings; import com.azure.resourcemanager.storage.models.SmbSetting; import java.util.Arrays; @@ -21,7 +19,7 @@ public final class FileServicesSetServicePropertiesSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileServicesPut.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileServicesPut.json */ /** * Sample code: PutFileServices. @@ -58,7 +56,7 @@ public static void putFileServices(com.azure.resourcemanager.AzureResourceManage } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * FileServicesPut_EnableSecureSmbFeatures.json */ /** @@ -81,7 +79,7 @@ public static void putFileServicesEnableSecureSmbFeatures(com.azure.resourcemana } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * FileServicesPut_EnableSMBMultichannel.json */ /** @@ -99,26 +97,4 @@ public static void putFileServicesEnableSMBMultichannel(com.azure.resourcemanage .withSmb(new SmbSetting().withMultichannel(new Multichannel().withEnabled(true)))), com.azure.core.util.Context.NONE); } - - /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ - * FileServicesPut_EncryptionInTransitRequired.json - */ - /** - * Sample code: PutFileServices_EncryptionInTransitRequired. - * - * @param azure The entry point for accessing resource management APIs in Azure. - */ - public static void - putFileServicesEncryptionInTransitRequired(com.azure.resourcemanager.AzureResourceManager azure) { - azure.storageAccounts() - .manager() - .serviceClient() - .getFileServices() - .setServicePropertiesWithResponse("res4410", "sto8607", - new FileServicePropertiesInner().withProtocolSettings(new ProtocolSettings() - .withSmb(new SmbSetting().withEncryptionInTransit(new EncryptionInTransit().withRequired(true))) - .withNfs(new NfsSetting().withEncryptionInTransit(new EncryptionInTransit().withRequired(true)))), - com.azure.core.util.Context.NONE); - } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesCreateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesCreateSamples.java index 28c73d1762f7..3c31ad7d4c48 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesCreateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesCreateSamples.java @@ -15,7 +15,7 @@ public final class FileSharesCreateSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesPut_ProvisionedV2. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPut_ProvisionedV2. * json */ /** @@ -35,7 +35,7 @@ public static void putSharesProvisionedV2(com.azure.resourcemanager.AzureResourc /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesPut_AccessTier.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPut_AccessTier.json */ /** * Sample code: PutShares with Access Tier. @@ -53,7 +53,7 @@ public static void putSharesWithAccessTier(com.azure.resourcemanager.AzureResour /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesPut_NFS.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPut_NFS.json */ /** * Sample code: Create NFS Shares. @@ -72,7 +72,7 @@ public static void createNFSShares(com.azure.resourcemanager.AzureResourceManage /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesPut_PaidBursting. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPut_PaidBursting. * json */ /** @@ -95,7 +95,7 @@ public static void putSharesWithPaidBursting(com.azure.resourcemanager.AzureReso /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesPut.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPut.json */ /** * Sample code: PutShares. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesDeleteSamples.java index 5afb8483d69c..a38bff0da044 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesDeleteSamples.java @@ -10,7 +10,7 @@ public final class FileSharesDeleteSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesDelete.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesDelete.json */ /** * Sample code: DeleteShares. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesGetSamples.java index 600b6e67293f..e92739026be5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesGetSamples.java @@ -10,7 +10,7 @@ public final class FileSharesGetSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet_Stats.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet_Stats.json */ /** * Sample code: GetShareStats. @@ -27,7 +27,7 @@ public static void getShareStats(com.azure.resourcemanager.AzureResourceManager /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet_PaidBursting. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet_PaidBursting. * json */ /** @@ -45,7 +45,7 @@ public static void getSharePaidBursting(com.azure.resourcemanager.AzureResourceM /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet_ProvisionedV2. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet_ProvisionedV2. * json */ /** @@ -63,7 +63,7 @@ public static void getShareProvisionedV2(com.azure.resourcemanager.AzureResource /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet.json */ /** * Sample code: GetShares. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesLeaseSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesLeaseSamples.java index 253e6b9927e0..73863dbd898e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesLeaseSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesLeaseSamples.java @@ -13,7 +13,7 @@ public final class FileSharesLeaseSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesLease_Break.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesLease_Break.json */ /** * Sample code: Break a lease on a share. @@ -33,7 +33,7 @@ public static void breakALeaseOnAShare(com.azure.resourcemanager.AzureResourceMa /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesLease_Acquire.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesLease_Acquire.json */ /** * Sample code: Acquire a lease on a share. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesListSamples.java index 5d3c5335d529..4514defa2608 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesListSamples.java @@ -10,7 +10,7 @@ public final class FileSharesListSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesList.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesList.json */ /** * Sample code: ListShares. @@ -27,7 +27,7 @@ public static void listShares(com.azure.resourcemanager.AzureResourceManager azu /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/DeletedFileSharesList.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/DeletedFileSharesList.json */ /** * Sample code: ListDeletedShares. @@ -44,7 +44,7 @@ public static void listDeletedShares(com.azure.resourcemanager.AzureResourceMana /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesList_ProvisionedV2. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesList_ProvisionedV2. * json */ /** @@ -62,7 +62,7 @@ public static void listSharesProvisionedV2(com.azure.resourcemanager.AzureResour /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileShareSnapshotsList.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileShareSnapshotsList.json */ /** * Sample code: ListShareSnapshots. @@ -79,7 +79,7 @@ public static void listShareSnapshots(com.azure.resourcemanager.AzureResourceMan /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesList_PaidBursting. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesList_PaidBursting. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesRestoreSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesRestoreSamples.java index 573c52330880..fa71196fa427 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesRestoreSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesRestoreSamples.java @@ -12,7 +12,7 @@ public final class FileSharesRestoreSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesRestore.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesRestore.json */ /** * Sample code: RestoreShares. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesUpdateSamples.java index 1745700e98f2..78f340d5a1e6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/FileSharesUpdateSamples.java @@ -19,7 +19,7 @@ public final class FileSharesUpdateSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesPatch.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPatch.json */ /** * Sample code: UpdateShares. @@ -37,7 +37,7 @@ public static void updateShares(com.azure.resourcemanager.AzureResourceManager a /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileShareAclsPatch.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileShareAclsPatch.json */ /** * Sample code: UpdateShareAcls. @@ -63,7 +63,7 @@ public static void updateShareAcls(com.azure.resourcemanager.AzureResourceManage /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesPatch_PaidBursting. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPatch_PaidBursting. * json */ /** @@ -86,7 +86,7 @@ public static void updateSharePaidBursting(com.azure.resourcemanager.AzureResour /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesPatch_ProvisionedV2 + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPatch_ProvisionedV2 * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationCreateOrUpdateSamples.java index 231147bbf1cb..0c0c95e0191a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ public final class LocalUsersOperationCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserCreate.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserCreate.json */ /** * Sample code: CreateLocalUser. @@ -43,7 +43,7 @@ public static void createLocalUser(com.azure.resourcemanager.AzureResourceManage /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserCreateNFSv3Enabled. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserCreateNFSv3Enabled. * json */ /** @@ -63,7 +63,7 @@ public static void createNFSv3EnabledLocalUser(com.azure.resourcemanager.AzureRe /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserUpdate.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserUpdate.json */ /** * Sample code: UpdateLocalUser. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationDeleteSamples.java index c074092d33c1..3451ef9ca6a6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationDeleteSamples.java @@ -10,7 +10,7 @@ public final class LocalUsersOperationDeleteSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserDelete.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserDelete.json */ /** * Sample code: DeleteLocalUser. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationGetSamples.java index a31694b5340c..3f3f9d10e367 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationGetSamples.java @@ -10,7 +10,7 @@ public final class LocalUsersOperationGetSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserGet.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserGet.json */ /** * Sample code: GetLocalUser. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationListKeysSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationListKeysSamples.java index 36549a94b44e..e18b4b5b33b8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationListKeysSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationListKeysSamples.java @@ -10,7 +10,7 @@ public final class LocalUsersOperationListKeysSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserListKeys.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserListKeys.json */ /** * Sample code: ListLocalUserKeys. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationListSamples.java index 8970c6e1cbb2..96dccb23bff4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationListSamples.java @@ -12,7 +12,7 @@ public final class LocalUsersOperationListSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUsersListNFSv3Enabled. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUsersListNFSv3Enabled. * json */ /** @@ -30,7 +30,7 @@ public static void listNFSv3EnabledLocalUsers(com.azure.resourcemanager.AzureRes /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUsersList.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUsersList.json */ /** * Sample code: ListLocalUsers. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationRegeneratePasswordSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationRegeneratePasswordSamples.java index e25450b0aac6..eadbc5da090d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationRegeneratePasswordSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/LocalUsersOperationRegeneratePasswordSamples.java @@ -10,7 +10,7 @@ public final class LocalUsersOperationRegeneratePasswordSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserRegeneratePassword. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserRegeneratePassword. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ManagementPoliciesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ManagementPoliciesCreateOrUpdateSamples.java index b146f8a8f20c..a69d5ee9fc59 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ManagementPoliciesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ManagementPoliciesCreateOrUpdateSamples.java @@ -25,7 +25,7 @@ */ public final class ManagementPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountSetManagementPolicyColdTierActions.json */ /** @@ -75,7 +75,7 @@ public final class ManagementPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountSetManagementPolicyWithSnapshotAndVersion.json */ /** @@ -127,7 +127,7 @@ public final class ManagementPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountSetManagementPolicyForBlockAndAppendBlobs.json */ /** @@ -165,7 +165,7 @@ public final class ManagementPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountSetManagementPolicyHotTierActions.json */ /** @@ -203,7 +203,7 @@ public final class ManagementPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountSetManagementPolicy_LastAccessTimeBasedBlobActions.json */ /** @@ -243,7 +243,7 @@ public static void storageAccountSetManagementPolicyLastAccessTimeBasedBlobActio } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountSetManagementPolicy.json */ /** @@ -301,7 +301,7 @@ public static void storageAccountSetManagementPolicies(com.azure.resourcemanager } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountSetManagementPolicy_BaseBlobDaysAfterCreationActions.json */ /** @@ -340,7 +340,7 @@ public static void storageAccountSetManagementPolicyBaseBlobDaysAfterCreationAct } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountSetManagementPolicy_LastTierChangeTimeActions.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ManagementPoliciesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ManagementPoliciesDeleteSamples.java index 03b209d175a0..3c448a87ad71 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ManagementPoliciesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ManagementPoliciesDeleteSamples.java @@ -11,7 +11,7 @@ */ public final class ManagementPoliciesDeleteSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountDeleteManagementPolicy.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ManagementPoliciesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ManagementPoliciesGetSamples.java index daa302220d9a..5559b03610dc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ManagementPoliciesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ManagementPoliciesGetSamples.java @@ -11,7 +11,7 @@ */ public final class ManagementPoliciesGetSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountGetManagementPolicy.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java index 39ba4fdc36be..fb6858716bd6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java @@ -9,7 +9,7 @@ */ public final class NetworkSecurityPerimeterConfigurationsGetSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * NetworkSecurityPerimeterConfigurationGet.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/NetworkSecurityPerimeterConfigurationsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/NetworkSecurityPerimeterConfigurationsListSamples.java index 36b454b83987..53076ea2e0b5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/NetworkSecurityPerimeterConfigurationsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/NetworkSecurityPerimeterConfigurationsListSamples.java @@ -9,7 +9,7 @@ */ public final class NetworkSecurityPerimeterConfigurationsListSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * NetworkSecurityPerimeterConfigurationList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java index 84666e31b9fb..9e6cfb924b75 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java @@ -9,7 +9,7 @@ */ public final class NetworkSecurityPerimeterConfigurationsReconcileSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * NetworkSecurityPerimeterConfigurationReconcile.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ObjectReplicationPoliciesOperationCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ObjectReplicationPoliciesOperationCreateOrUpdateSamples.java index b4de4199d1e4..2bc66a4936d3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ObjectReplicationPoliciesOperationCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ObjectReplicationPoliciesOperationCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ */ public final class ObjectReplicationPoliciesOperationCreateOrUpdateSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountCreateObjectReplicationPolicyOnSource.json */ /** @@ -46,7 +46,7 @@ public final class ObjectReplicationPoliciesOperationCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountUpdateObjectReplicationPolicyOnDestination.json */ /** @@ -77,7 +77,7 @@ public final class ObjectReplicationPoliciesOperationCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountCreateObjectReplicationPolicyOnDestination.json */ /** @@ -102,7 +102,7 @@ public final class ObjectReplicationPoliciesOperationCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountUpdateObjectReplicationPolicyOnSource.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ObjectReplicationPoliciesOperationDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ObjectReplicationPoliciesOperationDeleteSamples.java index 166fa3e2ebce..b21e81755048 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ObjectReplicationPoliciesOperationDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ObjectReplicationPoliciesOperationDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ObjectReplicationPoliciesOperationDeleteSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountDeleteObjectReplicationPolicy.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ObjectReplicationPoliciesOperationGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ObjectReplicationPoliciesOperationGetSamples.java index fdf651d8bcba..79525dc7c8ae 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ObjectReplicationPoliciesOperationGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ObjectReplicationPoliciesOperationGetSamples.java @@ -9,7 +9,7 @@ */ public final class ObjectReplicationPoliciesOperationGetSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountGetObjectReplicationPolicy.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ObjectReplicationPoliciesOperationListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ObjectReplicationPoliciesOperationListSamples.java index 3dbb0091f67f..520c691df82d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ObjectReplicationPoliciesOperationListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/ObjectReplicationPoliciesOperationListSamples.java @@ -9,7 +9,7 @@ */ public final class ObjectReplicationPoliciesOperationListSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountListObjectReplicationPolicies.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/OperationsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/OperationsListSamples.java index 3b523e06dac8..4853f86de00d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/OperationsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/OperationsListSamples.java @@ -10,7 +10,7 @@ public final class OperationsListSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/OperationsList.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/OperationsList.json */ /** * Sample code: OperationsList. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateEndpointConnectionsDeleteSamples.java index ec0daf5d2156..5b12ef36c7b5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountDeletePrivateEndpointConnection.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateEndpointConnectionsGetSamples.java index d21bb2f0ca17..824dfd3673b4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateEndpointConnectionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountGetPrivateEndpointConnection.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateEndpointConnectionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateEndpointConnectionsListSamples.java index 5cb3650d7ff5..d19586993660 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateEndpointConnectionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateEndpointConnectionsListSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountListPrivateEndpointConnections.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateEndpointConnectionsPutSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateEndpointConnectionsPutSamples.java index 2e4c14465635..eb914fedbea5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateEndpointConnectionsPutSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateEndpointConnectionsPutSamples.java @@ -13,7 +13,7 @@ */ public final class PrivateEndpointConnectionsPutSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountPutPrivateEndpointConnection.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateLinkResourcesListByStorageAccountSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateLinkResourcesListByStorageAccountSamples.java index d61851cb1b11..80b9a01f30dc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateLinkResourcesListByStorageAccountSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/PrivateLinkResourcesListByStorageAccountSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateLinkResourcesListByStorageAccountSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountListPrivateLinkResources.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueCreateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueCreateSamples.java index c23f66069c8f..6dbf88148ad5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueCreateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueCreateSamples.java @@ -14,7 +14,7 @@ public final class QueueCreateSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueOperationPut.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueOperationPut.json */ /** * Sample code: QueueOperationPut. @@ -32,7 +32,7 @@ public static void queueOperationPut(com.azure.resourcemanager.AzureResourceMana /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueOperationPutWithMetadata + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueOperationPutWithMetadata * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueDeleteSamples.java index 1ec4b85f68af..15a78962ed0e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueDeleteSamples.java @@ -10,7 +10,7 @@ public final class QueueDeleteSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueOperationDelete.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueOperationDelete.json */ /** * Sample code: QueueOperationDelete. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueGetSamples.java index 3a6e4f888309..ff9b8d31402c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueGetSamples.java @@ -10,7 +10,7 @@ public final class QueueGetSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueOperationGet.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueOperationGet.json */ /** * Sample code: QueueOperationGet. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueListSamples.java index a8d6586b2feb..0af779917aec 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueListSamples.java @@ -10,7 +10,7 @@ public final class QueueListSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueOperationList.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueOperationList.json */ /** * Sample code: QueueOperationList. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueServicesGetServicePropertiesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueServicesGetServicePropertiesSamples.java index e654eec075a1..7c64176b1f7e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueServicesGetServicePropertiesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueServicesGetServicePropertiesSamples.java @@ -10,7 +10,7 @@ public final class QueueServicesGetServicePropertiesSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueServicesGet.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueServicesGet.json */ /** * Sample code: QueueServicesGet. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueServicesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueServicesListSamples.java index cd516a535bde..ec3a0ce4b9b8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueServicesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueServicesListSamples.java @@ -10,7 +10,7 @@ public final class QueueServicesListSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueServicesList.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueServicesList.json */ /** * Sample code: QueueServicesList. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueServicesSetServicePropertiesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueServicesSetServicePropertiesSamples.java index 3cacce5849c1..0c8ae42a431b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueServicesSetServicePropertiesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueServicesSetServicePropertiesSamples.java @@ -16,7 +16,7 @@ public final class QueueServicesSetServicePropertiesSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueServicesPut.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueServicesPut.json */ /** * Sample code: QueueServicesPut. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueUpdateSamples.java index 201cd0bc7c45..4e0288b05e5e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/QueueUpdateSamples.java @@ -12,7 +12,7 @@ public final class QueueUpdateSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueOperationPatch.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueOperationPatch.json */ /** * Sample code: QueueOperationPatch. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/SkusListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/SkusListSamples.java index 2e776b17b6bc..beb2d43ce872 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/SkusListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/SkusListSamples.java @@ -10,20 +10,7 @@ public final class SkusListSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/SKUListWithLocationInfo.json - */ - /** - * Sample code: SKUListWithLocationInfo. - * - * @param azure The entry point for accessing resource management APIs in Azure. - */ - public static void sKUListWithLocationInfo(com.azure.resourcemanager.AzureResourceManager azure) { - azure.storageAccounts().manager().serviceClient().getSkus().list(com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/SKUList.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/SKUList.json */ /** * Sample code: SkuList. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsAbortHierarchicalNamespaceMigrationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsAbortHierarchicalNamespaceMigrationSamples.java index 7ec53638eb3e..64ed166a99c2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsAbortHierarchicalNamespaceMigrationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsAbortHierarchicalNamespaceMigrationSamples.java @@ -9,7 +9,7 @@ */ public final class StorageAccountsAbortHierarchicalNamespaceMigrationSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountAbortHierarchicalNamespaceMigration.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsCheckNameAvailabilitySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsCheckNameAvailabilitySamples.java index 44c43257f738..6d725e49e251 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsCheckNameAvailabilitySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsCheckNameAvailabilitySamples.java @@ -11,7 +11,7 @@ */ public final class StorageAccountsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountCheckNameAvailability.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsCreateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsCreateSamples.java index a2b88c05e01c..07a3bc44a84d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsCreateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsCreateSamples.java @@ -27,7 +27,6 @@ import com.azure.resourcemanager.storage.models.Kind; import com.azure.resourcemanager.storage.models.MinimumTlsVersion; import com.azure.resourcemanager.storage.models.NetworkRuleSet; -import com.azure.resourcemanager.storage.models.Placement; import com.azure.resourcemanager.storage.models.PublicNetworkAccess; import com.azure.resourcemanager.storage.models.RoutingChoice; import com.azure.resourcemanager.storage.models.RoutingPreference; @@ -37,7 +36,6 @@ import com.azure.resourcemanager.storage.models.StorageAccountCreateParameters; import com.azure.resourcemanager.storage.models.UserAssignedIdentity; import com.azure.resourcemanager.storage.models.VirtualNetworkRule; -import com.azure.resourcemanager.storage.models.ZonePlacementPolicy; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -48,7 +46,7 @@ public final class StorageAccountsCreateSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/NfsV3AccountCreate.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/NfsV3AccountCreate.json */ /** * Sample code: NfsV3AccountCreate. @@ -76,99 +74,76 @@ public static void nfsV3AccountCreate(com.azure.resourcemanager.AzureResourceMan } /* - * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCreate.json + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ + * StorageAccountCreatePremiumBlockBlobStorage.json */ /** - * Sample code: StorageAccountCreate. + * Sample code: StorageAccountCreatePremiumBlockBlobStorage. * * @param azure The entry point for accessing resource management APIs in Azure. */ - public static void storageAccountCreate(com.azure.resourcemanager.AzureResourceManager azure) { + public static void + storageAccountCreatePremiumBlockBlobStorage(com.azure.resourcemanager.AzureResourceManager azure) { azure.storageAccounts() .manager() .serviceClient() .getStorageAccounts() - .create("res9101", "sto4445", new StorageAccountCreateParameters() - .withSku(new Sku().withName(SkuName.STANDARD_GRS)) - .withKind(Kind.STORAGE) - .withLocation("eastus") - .withExtendedLocation( - new ExtendedLocation().withName("losangeles001").withType(ExtendedLocationTypes.EDGE_ZONE)) - .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withSasPolicy( - new SasPolicy().withSasExpirationPeriod("1.15:59:59").withExpirationAction(ExpirationAction.LOG)) - .withKeyPolicy(new KeyPolicy().withKeyExpirationPeriodInDays(20)) - .withEncryption(new Encryption() - .withServices(new EncryptionServices() - .withBlob(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT)) - .withFile(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT))) - .withKeySource(KeySource.MICROSOFT_STORAGE) - .withRequireInfrastructureEncryption(false)) - .withIsSftpEnabled(true) - .withIsHnsEnabled(true) - .withRoutingPreference(new RoutingPreference().withRoutingChoice(RoutingChoice.MICROSOFT_ROUTING) - .withPublishMicrosoftEndpoints(true) - .withPublishInternetEndpoints(true)) - .withAllowBlobPublicAccess(false) - .withMinimumTlsVersion(MinimumTlsVersion.TLS1_2) - .withAllowSharedKeyAccess(true) - .withDefaultToOAuthAuthentication(false), com.azure.core.util.Context.NONE); + .create("res9101", "sto4445", + new StorageAccountCreateParameters().withSku(new Sku().withName(SkuName.PREMIUM_LRS)) + .withKind(Kind.BLOCK_BLOB_STORAGE) + .withLocation("eastus") + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withEncryption(new Encryption() + .withServices(new EncryptionServices() + .withBlob(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT)) + .withFile(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT))) + .withKeySource(KeySource.MICROSOFT_STORAGE) + .withRequireInfrastructureEncryption(false)) + .withMinimumTlsVersion(MinimumTlsVersion.TLS1_2) + .withAllowSharedKeyAccess(true), + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCreate_zones. - * json + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ + * StorageAccountCreateWithImmutabilityPolicy.json */ /** - * Sample code: StorageAccountCreate_zones. + * Sample code: StorageAccountCreateWithImmutabilityPolicy. * * @param azure The entry point for accessing resource management APIs in Azure. */ - public static void storageAccountCreateZones(com.azure.resourcemanager.AzureResourceManager azure) { + public static void + storageAccountCreateWithImmutabilityPolicy(com.azure.resourcemanager.AzureResourceManager azure) { azure.storageAccounts() .manager() .serviceClient() .getStorageAccounts() - .create("res9101", "sto4445", new StorageAccountCreateParameters() - .withSku(new Sku().withName(SkuName.STANDARD_GRS)) - .withKind(Kind.STORAGE) - .withLocation("eastus") - .withExtendedLocation( - new ExtendedLocation().withName("losangeles001").withType(ExtendedLocationTypes.EDGE_ZONE)) - .withZones(Arrays.asList("1")) - .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withSasPolicy( - new SasPolicy().withSasExpirationPeriod("1.15:59:59").withExpirationAction(ExpirationAction.LOG)) - .withKeyPolicy(new KeyPolicy().withKeyExpirationPeriodInDays(20)) - .withEncryption(new Encryption() - .withServices(new EncryptionServices() - .withBlob(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT)) - .withFile(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT))) - .withKeySource(KeySource.MICROSOFT_STORAGE) - .withRequireInfrastructureEncryption(false)) - .withIsSftpEnabled(true) - .withIsHnsEnabled(true) - .withRoutingPreference(new RoutingPreference().withRoutingChoice(RoutingChoice.MICROSOFT_ROUTING) - .withPublishMicrosoftEndpoints(true) - .withPublishInternetEndpoints(true)) - .withAllowBlobPublicAccess(false) - .withMinimumTlsVersion(MinimumTlsVersion.TLS1_2) - .withAllowSharedKeyAccess(true) - .withDefaultToOAuthAuthentication(false), com.azure.core.util.Context.NONE); + .create("res9101", "sto4445", + new StorageAccountCreateParameters().withSku(new Sku().withName(SkuName.STANDARD_GRS)) + .withKind(Kind.STORAGE) + .withLocation("eastus") + .withExtendedLocation( + new ExtendedLocation().withName("losangeles001").withType(ExtendedLocationTypes.EDGE_ZONE)) + .withImmutableStorageWithVersioning(new ImmutableStorageAccount().withEnabled(true) + .withImmutabilityPolicy( + new AccountImmutabilityPolicyProperties().withImmutabilityPeriodSinceCreationInDays(15) + .withState(AccountImmutabilityPolicyState.UNLOCKED) + .withAllowProtectedAppendWrites(true))), + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ - * StorageAccountCreate_placement.json + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ + * StorageAccountCreateAllowedCopyScopeToPrivateLink.json */ /** - * Sample code: StorageAccountCreate_placement. + * Sample code: StorageAccountCreateAllowedCopyScopeToPrivateLink. * * @param azure The entry point for accessing resource management APIs in Azure. */ - public static void storageAccountCreatePlacement(com.azure.resourcemanager.AzureResourceManager azure) { + public static void + storageAccountCreateAllowedCopyScopeToPrivateLink(com.azure.resourcemanager.AzureResourceManager azure) { azure.storageAccounts() .manager() .serviceClient() @@ -177,10 +152,8 @@ public static void storageAccountCreatePlacement(com.azure.resourcemanager.Azure .withSku(new Sku().withName(SkuName.STANDARD_GRS)) .withKind(Kind.STORAGE) .withLocation("eastus") - .withExtendedLocation( - new ExtendedLocation().withName("losangeles001").withType(ExtendedLocationTypes.EDGE_ZONE)) - .withPlacement(new Placement().withZonePlacementPolicy(ZonePlacementPolicy.ANY)) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withAllowedCopyScope(AllowedCopyScope.PRIVATE_LINK) .withSasPolicy( new SasPolicy().withSasExpirationPeriod("1.15:59:59").withExpirationAction(ExpirationAction.LOG)) .withKeyPolicy(new KeyPolicy().withKeyExpirationPeriodInDays(20)) @@ -190,28 +163,25 @@ public static void storageAccountCreatePlacement(com.azure.resourcemanager.Azure .withFile(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT))) .withKeySource(KeySource.MICROSOFT_STORAGE) .withRequireInfrastructureEncryption(false)) - .withIsSftpEnabled(true) .withIsHnsEnabled(true) .withRoutingPreference(new RoutingPreference().withRoutingChoice(RoutingChoice.MICROSOFT_ROUTING) .withPublishMicrosoftEndpoints(true) .withPublishInternetEndpoints(true)) .withAllowBlobPublicAccess(false) .withMinimumTlsVersion(MinimumTlsVersion.TLS1_2) - .withAllowSharedKeyAccess(true) - .withDefaultToOAuthAuthentication(false), com.azure.core.util.Context.NONE); + .withAllowSharedKeyAccess(true), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ - * StorageAccountCreateDisallowPublicNetworkAccess.json + * x-ms-original-file: + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreate.json */ /** - * Sample code: StorageAccountCreateDisallowPublicNetworkAccess. + * Sample code: StorageAccountCreate. * * @param azure The entry point for accessing resource management APIs in Azure. */ - public static void - storageAccountCreateDisallowPublicNetworkAccess(com.azure.resourcemanager.AzureResourceManager azure) { + public static void storageAccountCreate(com.azure.resourcemanager.AzureResourceManager azure) { azure.storageAccounts() .manager() .serviceClient() @@ -223,7 +193,6 @@ public static void storageAccountCreatePlacement(com.azure.resourcemanager.Azure .withExtendedLocation( new ExtendedLocation().withName("losangeles001").withType(ExtendedLocationTypes.EDGE_ZONE)) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withPublicNetworkAccess(PublicNetworkAccess.DISABLED) .withSasPolicy( new SasPolicy().withSasExpirationPeriod("1.15:59:59").withExpirationAction(ExpirationAction.LOG)) .withKeyPolicy(new KeyPolicy().withKeyExpirationPeriodInDays(20)) @@ -233,26 +202,28 @@ public static void storageAccountCreatePlacement(com.azure.resourcemanager.Azure .withFile(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT))) .withKeySource(KeySource.MICROSOFT_STORAGE) .withRequireInfrastructureEncryption(false)) + .withIsSftpEnabled(true) .withIsHnsEnabled(true) .withRoutingPreference(new RoutingPreference().withRoutingChoice(RoutingChoice.MICROSOFT_ROUTING) .withPublishMicrosoftEndpoints(true) .withPublishInternetEndpoints(true)) .withAllowBlobPublicAccess(false) .withMinimumTlsVersion(MinimumTlsVersion.TLS1_2) - .withAllowSharedKeyAccess(true), com.azure.core.util.Context.NONE); + .withAllowSharedKeyAccess(true) + .withDefaultToOAuthAuthentication(false), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ - * StorageAccountCreateDnsEndpointTypeToStandard.json + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ + * StorageAccountCreateEnablePublicNetworkAccess.json */ /** - * Sample code: StorageAccountCreateDnsEndpointTypeToStandard. + * Sample code: StorageAccountCreateEnablePublicNetworkAccess. * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void - storageAccountCreateDnsEndpointTypeToStandard(com.azure.resourcemanager.AzureResourceManager azure) { + storageAccountCreateEnablePublicNetworkAccess(com.azure.resourcemanager.AzureResourceManager azure) { azure.storageAccounts() .manager() .serviceClient() @@ -264,6 +235,7 @@ public static void storageAccountCreatePlacement(com.azure.resourcemanager.Azure .withExtendedLocation( new ExtendedLocation().withName("losangeles001").withType(ExtendedLocationTypes.EDGE_ZONE)) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withPublicNetworkAccess(PublicNetworkAccess.ENABLED) .withSasPolicy( new SasPolicy().withSasExpirationPeriod("1.15:59:59").withExpirationAction(ExpirationAction.LOG)) .withKeyPolicy(new KeyPolicy().withKeyExpirationPeriodInDays(20)) @@ -273,29 +245,25 @@ public static void storageAccountCreatePlacement(com.azure.resourcemanager.Azure .withFile(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT))) .withKeySource(KeySource.MICROSOFT_STORAGE) .withRequireInfrastructureEncryption(false)) - .withIsSftpEnabled(true) .withIsHnsEnabled(true) .withRoutingPreference(new RoutingPreference().withRoutingChoice(RoutingChoice.MICROSOFT_ROUTING) .withPublishMicrosoftEndpoints(true) .withPublishInternetEndpoints(true)) .withAllowBlobPublicAccess(false) .withMinimumTlsVersion(MinimumTlsVersion.TLS1_2) - .withAllowSharedKeyAccess(true) - .withDefaultToOAuthAuthentication(false) - .withDnsEndpointType(DnsEndpointType.STANDARD), com.azure.core.util.Context.NONE); + .withAllowSharedKeyAccess(true), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ - * StorageAccountCreateDnsEndpointTypeToAzureDnsZone.json + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ + * StorageAccountCreateAllowedCopyScopeToAAD.json */ /** - * Sample code: StorageAccountCreateDnsEndpointTypeToAzureDnsZone. + * Sample code: StorageAccountCreateAllowedCopyScopeToAAD. * * @param azure The entry point for accessing resource management APIs in Azure. */ - public static void - storageAccountCreateDnsEndpointTypeToAzureDnsZone(com.azure.resourcemanager.AzureResourceManager azure) { + public static void storageAccountCreateAllowedCopyScopeToAAD(com.azure.resourcemanager.AzureResourceManager azure) { azure.storageAccounts() .manager() .serviceClient() @@ -304,9 +272,8 @@ public static void storageAccountCreatePlacement(com.azure.resourcemanager.Azure .withSku(new Sku().withName(SkuName.STANDARD_GRS)) .withKind(Kind.STORAGE) .withLocation("eastus") - .withExtendedLocation( - new ExtendedLocation().withName("losangeles001").withType(ExtendedLocationTypes.EDGE_ZONE)) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withAllowedCopyScope(AllowedCopyScope.AAD) .withSasPolicy( new SasPolicy().withSasExpirationPeriod("1.15:59:59").withExpirationAction(ExpirationAction.LOG)) .withKeyPolicy(new KeyPolicy().withKeyExpirationPeriodInDays(20)) @@ -316,89 +283,63 @@ public static void storageAccountCreatePlacement(com.azure.resourcemanager.Azure .withFile(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT))) .withKeySource(KeySource.MICROSOFT_STORAGE) .withRequireInfrastructureEncryption(false)) - .withIsSftpEnabled(true) .withIsHnsEnabled(true) .withRoutingPreference(new RoutingPreference().withRoutingChoice(RoutingChoice.MICROSOFT_ROUTING) .withPublishMicrosoftEndpoints(true) .withPublishInternetEndpoints(true)) .withAllowBlobPublicAccess(false) .withMinimumTlsVersion(MinimumTlsVersion.TLS1_2) - .withAllowSharedKeyAccess(true) - .withDefaultToOAuthAuthentication(false) - .withDnsEndpointType(DnsEndpointType.AZURE_DNS_ZONE), com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ - * StorageAccountCreatePremiumBlockBlobStorage.json - */ - /** - * Sample code: StorageAccountCreatePremiumBlockBlobStorage. - * - * @param azure The entry point for accessing resource management APIs in Azure. - */ - public static void - storageAccountCreatePremiumBlockBlobStorage(com.azure.resourcemanager.AzureResourceManager azure) { - azure.storageAccounts() - .manager() - .serviceClient() - .getStorageAccounts() - .create("res9101", "sto4445", - new StorageAccountCreateParameters().withSku(new Sku().withName(SkuName.PREMIUM_LRS)) - .withKind(Kind.BLOCK_BLOB_STORAGE) - .withLocation("eastus") - .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withEncryption(new Encryption() - .withServices(new EncryptionServices() - .withBlob(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT)) - .withFile(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT))) - .withKeySource(KeySource.MICROSOFT_STORAGE) - .withRequireInfrastructureEncryption(false)) - .withMinimumTlsVersion(MinimumTlsVersion.TLS1_2) - .withAllowSharedKeyAccess(true), - com.azure.core.util.Context.NONE); + .withAllowSharedKeyAccess(true), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ - * StorageAccountCreateWithImmutabilityPolicy.json + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ + * StorageAccountCreateUserAssignedIdentityWithFederatedIdentityClientId.json */ /** - * Sample code: StorageAccountCreateWithImmutabilityPolicy. + * Sample code: StorageAccountCreateUserAssignedIdentityWithFederatedIdentityClientId. * * @param azure The entry point for accessing resource management APIs in Azure. */ - public static void - storageAccountCreateWithImmutabilityPolicy(com.azure.resourcemanager.AzureResourceManager azure) { + public static void storageAccountCreateUserAssignedIdentityWithFederatedIdentityClientId( + com.azure.resourcemanager.AzureResourceManager azure) { azure.storageAccounts() .manager() .serviceClient() .getStorageAccounts() - .create("res9101", "sto4445", - new StorageAccountCreateParameters().withSku(new Sku().withName(SkuName.STANDARD_GRS)) - .withKind(Kind.STORAGE) - .withLocation("eastus") - .withExtendedLocation( - new ExtendedLocation().withName("losangeles001").withType(ExtendedLocationTypes.EDGE_ZONE)) - .withImmutableStorageWithVersioning(new ImmutableStorageAccount().withEnabled(true) - .withImmutabilityPolicy( - new AccountImmutabilityPolicyProperties().withImmutabilityPeriodSinceCreationInDays(15) - .withState(AccountImmutabilityPolicyState.UNLOCKED) - .withAllowProtectedAppendWrites(true))), + .create("res131918", "sto131918", new StorageAccountCreateParameters() + .withSku(new Sku().withName(SkuName.STANDARD_LRS)) + .withKind(Kind.STORAGE) + .withLocation("eastus") + .withIdentity(new Identity().withType(IdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/{subscription-id}/resourceGroups/res9101/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{managed-identity-name}", + new UserAssignedIdentity()))) + .withEncryption(new Encryption() + .withServices(new EncryptionServices() + .withBlob(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT)) + .withFile(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT))) + .withKeySource(KeySource.MICROSOFT_KEYVAULT) + .withKeyVaultProperties(new KeyVaultProperties().withKeyName("fakeTokenPlaceholder") + .withKeyVersion("fakeTokenPlaceholder") + .withKeyVaultUri("fakeTokenPlaceholder")) + .withEncryptionIdentity(new EncryptionIdentity().withEncryptionUserAssignedIdentity( + "/subscriptions/{subscription-id}/resourceGroups/res9101/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{managed-identity-name}") + .withEncryptionFederatedIdentityClientId("f83c6b1b-4d34-47e4-bb34-9d83df58b540"))), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ - * StorageAccountCreateAllowedCopyScopeToPrivateLink.json + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ + * StorageAccountCreateDisallowPublicNetworkAccess.json */ /** - * Sample code: StorageAccountCreateAllowedCopyScopeToPrivateLink. + * Sample code: StorageAccountCreateDisallowPublicNetworkAccess. * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void - storageAccountCreateAllowedCopyScopeToPrivateLink(com.azure.resourcemanager.AzureResourceManager azure) { + storageAccountCreateDisallowPublicNetworkAccess(com.azure.resourcemanager.AzureResourceManager azure) { azure.storageAccounts() .manager() .serviceClient() @@ -407,8 +348,10 @@ public static void storageAccountCreatePlacement(com.azure.resourcemanager.Azure .withSku(new Sku().withName(SkuName.STANDARD_GRS)) .withKind(Kind.STORAGE) .withLocation("eastus") + .withExtendedLocation( + new ExtendedLocation().withName("losangeles001").withType(ExtendedLocationTypes.EDGE_ZONE)) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withAllowedCopyScope(AllowedCopyScope.PRIVATE_LINK) + .withPublicNetworkAccess(PublicNetworkAccess.DISABLED) .withSasPolicy( new SasPolicy().withSasExpirationPeriod("1.15:59:59").withExpirationAction(ExpirationAction.LOG)) .withKeyPolicy(new KeyPolicy().withKeyExpirationPeriodInDays(20)) @@ -428,16 +371,16 @@ public static void storageAccountCreatePlacement(com.azure.resourcemanager.Azure } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ - * StorageAccountCreateEnablePublicNetworkAccess.json + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ + * StorageAccountCreateDnsEndpointTypeToStandard.json */ /** - * Sample code: StorageAccountCreateEnablePublicNetworkAccess. + * Sample code: StorageAccountCreateDnsEndpointTypeToStandard. * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void - storageAccountCreateEnablePublicNetworkAccess(com.azure.resourcemanager.AzureResourceManager azure) { + storageAccountCreateDnsEndpointTypeToStandard(com.azure.resourcemanager.AzureResourceManager azure) { azure.storageAccounts() .manager() .serviceClient() @@ -449,7 +392,6 @@ public static void storageAccountCreatePlacement(com.azure.resourcemanager.Azure .withExtendedLocation( new ExtendedLocation().withName("losangeles001").withType(ExtendedLocationTypes.EDGE_ZONE)) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withPublicNetworkAccess(PublicNetworkAccess.ENABLED) .withSasPolicy( new SasPolicy().withSasExpirationPeriod("1.15:59:59").withExpirationAction(ExpirationAction.LOG)) .withKeyPolicy(new KeyPolicy().withKeyExpirationPeriodInDays(20)) @@ -459,25 +401,29 @@ public static void storageAccountCreatePlacement(com.azure.resourcemanager.Azure .withFile(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT))) .withKeySource(KeySource.MICROSOFT_STORAGE) .withRequireInfrastructureEncryption(false)) + .withIsSftpEnabled(true) .withIsHnsEnabled(true) .withRoutingPreference(new RoutingPreference().withRoutingChoice(RoutingChoice.MICROSOFT_ROUTING) .withPublishMicrosoftEndpoints(true) .withPublishInternetEndpoints(true)) .withAllowBlobPublicAccess(false) .withMinimumTlsVersion(MinimumTlsVersion.TLS1_2) - .withAllowSharedKeyAccess(true), com.azure.core.util.Context.NONE); + .withAllowSharedKeyAccess(true) + .withDefaultToOAuthAuthentication(false) + .withDnsEndpointType(DnsEndpointType.STANDARD), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ - * StorageAccountCreateAllowedCopyScopeToAAD.json + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ + * StorageAccountCreateDnsEndpointTypeToAzureDnsZone.json */ /** - * Sample code: StorageAccountCreateAllowedCopyScopeToAAD. + * Sample code: StorageAccountCreateDnsEndpointTypeToAzureDnsZone. * * @param azure The entry point for accessing resource management APIs in Azure. */ - public static void storageAccountCreateAllowedCopyScopeToAAD(com.azure.resourcemanager.AzureResourceManager azure) { + public static void + storageAccountCreateDnsEndpointTypeToAzureDnsZone(com.azure.resourcemanager.AzureResourceManager azure) { azure.storageAccounts() .manager() .serviceClient() @@ -486,8 +432,9 @@ public static void storageAccountCreateAllowedCopyScopeToAAD(com.azure.resourcem .withSku(new Sku().withName(SkuName.STANDARD_GRS)) .withKind(Kind.STORAGE) .withLocation("eastus") + .withExtendedLocation( + new ExtendedLocation().withName("losangeles001").withType(ExtendedLocationTypes.EDGE_ZONE)) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withAllowedCopyScope(AllowedCopyScope.AAD) .withSasPolicy( new SasPolicy().withSasExpirationPeriod("1.15:59:59").withExpirationAction(ExpirationAction.LOG)) .withKeyPolicy(new KeyPolicy().withKeyExpirationPeriodInDays(20)) @@ -497,54 +444,20 @@ public static void storageAccountCreateAllowedCopyScopeToAAD(com.azure.resourcem .withFile(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT))) .withKeySource(KeySource.MICROSOFT_STORAGE) .withRequireInfrastructureEncryption(false)) + .withIsSftpEnabled(true) .withIsHnsEnabled(true) .withRoutingPreference(new RoutingPreference().withRoutingChoice(RoutingChoice.MICROSOFT_ROUTING) .withPublishMicrosoftEndpoints(true) .withPublishInternetEndpoints(true)) .withAllowBlobPublicAccess(false) .withMinimumTlsVersion(MinimumTlsVersion.TLS1_2) - .withAllowSharedKeyAccess(true), com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ - * StorageAccountCreateUserAssignedIdentityWithFederatedIdentityClientId.json - */ - /** - * Sample code: StorageAccountCreateUserAssignedIdentityWithFederatedIdentityClientId. - * - * @param azure The entry point for accessing resource management APIs in Azure. - */ - public static void storageAccountCreateUserAssignedIdentityWithFederatedIdentityClientId( - com.azure.resourcemanager.AzureResourceManager azure) { - azure.storageAccounts() - .manager() - .serviceClient() - .getStorageAccounts() - .create("res131918", "sto131918", new StorageAccountCreateParameters() - .withSku(new Sku().withName(SkuName.STANDARD_LRS)) - .withKind(Kind.STORAGE) - .withLocation("eastus") - .withIdentity(new Identity().withType(IdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf( - "/subscriptions/{subscription-id}/resourceGroups/res9101/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{managed-identity-name}", - new UserAssignedIdentity()))) - .withEncryption(new Encryption() - .withServices(new EncryptionServices() - .withBlob(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT)) - .withFile(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT))) - .withKeySource(KeySource.MICROSOFT_KEYVAULT) - .withKeyVaultProperties(new KeyVaultProperties().withKeyName("fakeTokenPlaceholder") - .withKeyVersion("fakeTokenPlaceholder") - .withKeyVaultUri("fakeTokenPlaceholder")) - .withEncryptionIdentity(new EncryptionIdentity().withEncryptionUserAssignedIdentity( - "/subscriptions/{subscription-id}/resourceGroups/res9101/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{managed-identity-name}") - .withEncryptionFederatedIdentityClientId("f83c6b1b-4d34-47e4-bb34-9d83df58b540"))), - com.azure.core.util.Context.NONE); + .withAllowSharedKeyAccess(true) + .withDefaultToOAuthAuthentication(false) + .withDnsEndpointType(DnsEndpointType.AZURE_DNS_ZONE), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountCreateUserAssignedEncryptionIdentityWithCMK.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsCustomerInitiatedMigrationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsCustomerInitiatedMigrationSamples.java index a581720d2397..028e72dac08b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsCustomerInitiatedMigrationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsCustomerInitiatedMigrationSamples.java @@ -13,7 +13,7 @@ public final class StorageAccountsCustomerInitiatedMigrationSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountPostMigration. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountPostMigration. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsDeleteSamples.java index 3321433cbe12..3d7373d640c8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsDeleteSamples.java @@ -10,7 +10,7 @@ public final class StorageAccountsDeleteSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountDelete.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountDelete.json */ /** * Sample code: StorageAccountDelete. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsFailoverSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsFailoverSamples.java index de7bfce90bd2..c2e3d7bf2e4d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsFailoverSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsFailoverSamples.java @@ -12,7 +12,7 @@ public final class StorageAccountsFailoverSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountFailover.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountFailover.json */ /** * Sample code: StorageAccountFailover. @@ -29,7 +29,7 @@ public static void storageAccountFailover(com.azure.resourcemanager.AzureResourc /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountFailoverPlanned + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountFailoverPlanned * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsGetByResourceGroupSamples.java index 18f8dbb401cf..3d121b0dcc4c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsGetByResourceGroupSamples.java @@ -11,7 +11,7 @@ */ public final class StorageAccountsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue.json */ /** @@ -31,7 +31,7 @@ public static void storageAccountGetPropertiesGeoReplicationStatscanFailoverTrue /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetProperties. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetProperties. * json */ /** @@ -48,7 +48,7 @@ public static void storageAccountGetProperties(com.azure.resourcemanager.AzureRe } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountGetPropertiesCMKVersionExpirationTime.json */ /** @@ -66,7 +66,7 @@ public static void storageAccountGetProperties(com.azure.resourcemanager.AzureRe } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse.json */ /** @@ -85,7 +85,7 @@ public static void storageAccountGetPropertiesGeoReplicationStatscanFailoverFals } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountGetAsyncSkuConversionStatus.json */ /** @@ -102,7 +102,7 @@ public static void storageAccountGetAsyncSkuConversionStatus(com.azure.resourcem } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountGetPropertiesCMKEnabled.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsGetCustomerInitiatedMigrationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsGetCustomerInitiatedMigrationSamples.java index 11aeaa71c750..89f80c53d175 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsGetCustomerInitiatedMigrationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsGetCustomerInitiatedMigrationSamples.java @@ -11,7 +11,7 @@ */ public final class StorageAccountsGetCustomerInitiatedMigrationSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountGetMigrationInProgress.json */ /** @@ -29,7 +29,7 @@ public static void storageAccountGetMigrationInProgress(com.azure.resourcemanage } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountGetMigrationFailed.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsHierarchicalNamespaceMigrationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsHierarchicalNamespaceMigrationSamples.java index 09c9041e7940..803b928afca4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsHierarchicalNamespaceMigrationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsHierarchicalNamespaceMigrationSamples.java @@ -9,7 +9,7 @@ */ public final class StorageAccountsHierarchicalNamespaceMigrationSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountHierarchicalNamespaceMigration.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListAccountSasSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListAccountSasSamples.java index 7c056b3aa3b3..35ca47d3c2eb 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListAccountSasSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListAccountSasSamples.java @@ -17,7 +17,7 @@ public final class StorageAccountsListAccountSasSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountListAccountSAS. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListAccountSAS. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListByResourceGroupSamples.java index 99f9da315b96..601c98d4ce9a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class StorageAccountsListByResourceGroupSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountListByResourceGroup.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListKeysSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListKeysSamples.java index 28ee9602cb5f..ac312d5d8f0a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListKeysSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListKeysSamples.java @@ -10,7 +10,7 @@ public final class StorageAccountsListKeysSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountListKeys.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListKeys.json */ /** * Sample code: StorageAccountListKeys. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListSamples.java index 674ffcc8d12b..9a11f29ba3c1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListSamples.java @@ -10,7 +10,7 @@ public final class StorageAccountsListSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountList.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountList.json */ /** * Sample code: StorageAccountList. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListServiceSasSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListServiceSasSamples.java index a67de223b3e2..384433b4cfca 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListServiceSasSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsListServiceSasSamples.java @@ -15,7 +15,7 @@ public final class StorageAccountsListServiceSasSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountListServiceSAS. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListServiceSAS. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsRegenerateKeySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsRegenerateKeySamples.java index a0d1a092742e..54fea9bc61c4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsRegenerateKeySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsRegenerateKeySamples.java @@ -12,7 +12,7 @@ public final class StorageAccountsRegenerateKeySamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountRegenerateKey. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountRegenerateKey. * json */ /** @@ -31,7 +31,7 @@ public static void storageAccountRegenerateKey(com.azure.resourcemanager.AzureRe } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountRegenerateKerbKey.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsRestoreBlobRangesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsRestoreBlobRangesSamples.java index b22df40bdeb7..ca8374900196 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsRestoreBlobRangesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsRestoreBlobRangesSamples.java @@ -15,7 +15,7 @@ public final class StorageAccountsRestoreBlobRangesSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobRangesRestore.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobRangesRestore.json */ /** * Sample code: BlobRangesRestore. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsRevokeUserDelegationKeysSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsRevokeUserDelegationKeysSamples.java index 235b4464493f..8b2dd67c2840 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsRevokeUserDelegationKeysSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsRevokeUserDelegationKeysSamples.java @@ -9,7 +9,7 @@ */ public final class StorageAccountsRevokeUserDelegationKeysSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountRevokeUserDelegationKeys.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsUpdateSamples.java index 6647e048fa80..f34735f87de2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsUpdateSamples.java @@ -6,14 +6,12 @@ import com.azure.resourcemanager.storage.models.AccountImmutabilityPolicyProperties; import com.azure.resourcemanager.storage.models.AccountImmutabilityPolicyState; -import com.azure.resourcemanager.storage.models.Action; import com.azure.resourcemanager.storage.models.ActiveDirectoryProperties; import com.azure.resourcemanager.storage.models.ActiveDirectoryPropertiesAccountType; import com.azure.resourcemanager.storage.models.AllowedCopyScope; import com.azure.resourcemanager.storage.models.AzureFilesIdentityBasedAuthentication; import com.azure.resourcemanager.storage.models.DefaultAction; import com.azure.resourcemanager.storage.models.DirectoryServiceOptions; -import com.azure.resourcemanager.storage.models.DualStackEndpointPreference; import com.azure.resourcemanager.storage.models.Encryption; import com.azure.resourcemanager.storage.models.EncryptionIdentity; import com.azure.resourcemanager.storage.models.EncryptionService; @@ -22,7 +20,6 @@ import com.azure.resourcemanager.storage.models.Identity; import com.azure.resourcemanager.storage.models.IdentityType; import com.azure.resourcemanager.storage.models.ImmutableStorageAccount; -import com.azure.resourcemanager.storage.models.IpRule; import com.azure.resourcemanager.storage.models.KeyPolicy; import com.azure.resourcemanager.storage.models.KeySource; import com.azure.resourcemanager.storage.models.KeyType; @@ -30,7 +27,6 @@ import com.azure.resourcemanager.storage.models.Kind; import com.azure.resourcemanager.storage.models.MinimumTlsVersion; import com.azure.resourcemanager.storage.models.NetworkRuleSet; -import com.azure.resourcemanager.storage.models.Placement; import com.azure.resourcemanager.storage.models.PublicNetworkAccess; import com.azure.resourcemanager.storage.models.ResourceAccessRule; import com.azure.resourcemanager.storage.models.RoutingChoice; @@ -38,10 +34,8 @@ import com.azure.resourcemanager.storage.models.SasPolicy; import com.azure.resourcemanager.storage.models.Sku; import com.azure.resourcemanager.storage.models.SkuName; -import com.azure.resourcemanager.storage.models.SmbOAuthSettings; import com.azure.resourcemanager.storage.models.StorageAccountUpdateParameters; import com.azure.resourcemanager.storage.models.UserAssignedIdentity; -import com.azure.resourcemanager.storage.models.ZonePlacementPolicy; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -51,7 +45,7 @@ */ public final class StorageAccountsUpdateSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountUpdateWithImmutabilityPolicy.json */ /** @@ -76,31 +70,7 @@ public final class StorageAccountsUpdateSamples { } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ - * StorageAccountLeverageIPv6Ability.json - */ - /** - * Sample code: StorageAccountUpdateEnableIpv6Features. - * - * @param azure The entry point for accessing resource management APIs in Azure. - */ - public static void storageAccountUpdateEnableIpv6Features(com.azure.resourcemanager.AzureResourceManager azure) { - azure.storageAccounts() - .manager() - .serviceClient() - .getStorageAccounts() - .updateWithResponse("res9407", "sto8596", - new StorageAccountUpdateParameters() - .withNetworkRuleSet(new NetworkRuleSet() - .withIpv6Rules(Arrays - .asList(new IpRule().withIpAddressOrRange("2001:0db8:85a3::/64").withAction(Action.ALLOW))) - .withDefaultAction(DefaultAction.DENY)) - .withDualStackEndpointPreference(new DualStackEndpointPreference().withPublishIpv6Endpoint(true)), - com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountUpdateUserAssignedIdentityWithFederatedIdentityClientId.json */ /** @@ -135,76 +105,9 @@ public static void storageAccountUpdateUserAssignedIdentityWithFederatedIdentity com.azure.core.util.Context.NONE); } - /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ - * StorageAccountUpdate_placement.json - */ - /** - * Sample code: StorageAccountUpdate_placement. - * - * @param azure The entry point for accessing resource management APIs in Azure. - */ - public static void storageAccountUpdatePlacement(com.azure.resourcemanager.AzureResourceManager azure) { - azure.storageAccounts() - .manager() - .serviceClient() - .getStorageAccounts() - .updateWithResponse("res9407", "sto8596", - new StorageAccountUpdateParameters() - .withPlacement(new Placement().withZonePlacementPolicy(ZonePlacementPolicy.ANY)) - .withEncryption(new Encryption() - .withServices(new EncryptionServices() - .withBlob(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT)) - .withFile(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT))) - .withKeySource(KeySource.MICROSOFT_STORAGE)) - .withSasPolicy(new SasPolicy().withSasExpirationPeriod("1.15:59:59") - .withExpirationAction(ExpirationAction.LOG)) - .withKeyPolicy(new KeyPolicy().withKeyExpirationPeriodInDays(20)) - .withIsSftpEnabled(true) - .withIsLocalUserEnabled(true) - .withEnableExtendedGroups(true) - .withNetworkRuleSet(new NetworkRuleSet() - .withResourceAccessRules(Arrays.asList(new ResourceAccessRule() - .withTenantId("72f988bf-86f1-41af-91ab-2d7cd011db47") - .withResourceId( - "/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace"))) - .withDefaultAction(DefaultAction.ALLOW)) - .withRoutingPreference(new RoutingPreference().withRoutingChoice(RoutingChoice.MICROSOFT_ROUTING) - .withPublishMicrosoftEndpoints(true) - .withPublishInternetEndpoints(true)) - .withAllowBlobPublicAccess(false) - .withMinimumTlsVersion(MinimumTlsVersion.TLS1_2) - .withAllowSharedKeyAccess(true) - .withDefaultToOAuthAuthentication(false), - com.azure.core.util.Context.NONE); - } - /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountEnableSmbOAuth. - * json - */ - /** - * Sample code: StorageAccountEnableSmbOAuth. - * - * @param azure The entry point for accessing resource management APIs in Azure. - */ - public static void storageAccountEnableSmbOAuth(com.azure.resourcemanager.AzureResourceManager azure) { - azure.storageAccounts() - .manager() - .serviceClient() - .getStorageAccounts() - .updateWithResponse("res9407", "sto8596", - new StorageAccountUpdateParameters() - .withAzureFilesIdentityBasedAuthentication(new AzureFilesIdentityBasedAuthentication() - .withDirectoryServiceOptions(DirectoryServiceOptions.NONE) - .withSmbOAuthSettings(new SmbOAuthSettings().withIsSmbOAuthEnabled(true))), - com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountEnableAD.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountEnableAD.json */ /** * Sample code: StorageAccountEnableAD. @@ -231,7 +134,7 @@ public static void storageAccountEnableAD(com.azure.resourcemanager.AzureResourc } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountUpdateAllowedCopyScopeToAAD.json */ /** @@ -271,7 +174,7 @@ public static void storageAccountUpdateAllowedCopyScopeToAAD(com.azure.resourcem } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountUpdateDisablePublicNetworkAccess.json */ /** @@ -313,51 +216,7 @@ public static void storageAccountUpdateAllowedCopyScopeToAAD(com.azure.resourcem /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountUpdate_zones. - * json - */ - /** - * Sample code: StorageAccountUpdate_zones. - * - * @param azure The entry point for accessing resource management APIs in Azure. - */ - public static void storageAccountUpdateZones(com.azure.resourcemanager.AzureResourceManager azure) { - azure.storageAccounts() - .manager() - .serviceClient() - .getStorageAccounts() - .updateWithResponse("res9407", "sto8596", - new StorageAccountUpdateParameters().withZones(Arrays.asList("1")) - .withEncryption(new Encryption() - .withServices(new EncryptionServices() - .withBlob(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT)) - .withFile(new EncryptionService().withEnabled(true).withKeyType(KeyType.ACCOUNT))) - .withKeySource(KeySource.MICROSOFT_STORAGE)) - .withSasPolicy(new SasPolicy().withSasExpirationPeriod("1.15:59:59") - .withExpirationAction(ExpirationAction.LOG)) - .withKeyPolicy(new KeyPolicy().withKeyExpirationPeriodInDays(20)) - .withIsSftpEnabled(true) - .withIsLocalUserEnabled(true) - .withEnableExtendedGroups(true) - .withNetworkRuleSet(new NetworkRuleSet() - .withResourceAccessRules(Arrays.asList(new ResourceAccessRule() - .withTenantId("72f988bf-86f1-41af-91ab-2d7cd011db47") - .withResourceId( - "/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace"))) - .withDefaultAction(DefaultAction.ALLOW)) - .withRoutingPreference(new RoutingPreference().withRoutingChoice(RoutingChoice.MICROSOFT_ROUTING) - .withPublishMicrosoftEndpoints(true) - .withPublishInternetEndpoints(true)) - .withAllowBlobPublicAccess(false) - .withMinimumTlsVersion(MinimumTlsVersion.TLS1_2) - .withAllowSharedKeyAccess(true) - .withDefaultToOAuthAuthentication(false), - com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountEnableCMK.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountEnableCMK.json */ /** * Sample code: StorageAccountEnableCMK. @@ -383,7 +242,7 @@ public static void storageAccountEnableCMK(com.azure.resourcemanager.AzureResour /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountUpdate.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountUpdate.json */ /** * Sample code: StorageAccountUpdate. @@ -425,7 +284,7 @@ public static void storageAccountUpdate(com.azure.resourcemanager.AzureResourceM } /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountUpdateUserAssignedEncryptionIdentityWithCMK.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentInstancesReportListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentInstancesReportListSamples.java index 2f0e1d7e9053..d51f63f94a34 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentInstancesReportListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentInstancesReportListSamples.java @@ -10,7 +10,7 @@ public final class StorageTaskAssignmentInstancesReportListSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/storageTaskAssignmentsList/ + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsList/ * ListStorageTaskAssignmentInstancesReportSummary.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsCreateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsCreateSamples.java index 270cac3ee36c..61dd32672b60 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsCreateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsCreateSamples.java @@ -21,7 +21,7 @@ public final class StorageTaskAssignmentsCreateSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/storageTaskAssignmentsCrud/ + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsCrud/ * PutStorageTaskAssignment.json */ /** @@ -51,7 +51,7 @@ public static void putStorageTaskAssignment(com.azure.resourcemanager.AzureResou /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/storageTaskAssignmentsCrud/ + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsCrud/ * PutStorageTaskAssignmentRequiredProperties.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsDeleteSamples.java index 7c40ab202d9b..347ced556938 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsDeleteSamples.java @@ -10,7 +10,7 @@ public final class StorageTaskAssignmentsDeleteSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/storageTaskAssignmentsCrud/ + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsCrud/ * DeleteStorageTaskAssignment.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsGetSamples.java index cb8c03dd0b3e..33310673045b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsGetSamples.java @@ -10,7 +10,7 @@ public final class StorageTaskAssignmentsGetSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/storageTaskAssignmentsCrud/ + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsCrud/ * GetStorageTaskAssignment.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsInstancesReportListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsInstancesReportListSamples.java index 0f6f287028fc..92550ef553ef 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsInstancesReportListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsInstancesReportListSamples.java @@ -10,7 +10,7 @@ public final class StorageTaskAssignmentsInstancesReportListSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/storageTaskAssignmentsList/ + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsList/ * ListStorageTaskAssignmentsInstancesReportSummary.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsListSamples.java index 7eb7a1e7d39c..282d444fe5ce 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsListSamples.java @@ -10,7 +10,7 @@ public final class StorageTaskAssignmentsListSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/storageTaskAssignmentsList/ + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsList/ * ListStorageTaskAssignmentsForAccount.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsUpdateSamples.java index f8759e89f004..55eb56b4b170 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageTaskAssignmentsUpdateSamples.java @@ -21,7 +21,7 @@ public final class StorageTaskAssignmentsUpdateSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/storageTaskAssignmentsCrud/ + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsCrud/ * PatchStorageTaskAssignment.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableCreateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableCreateSamples.java index c74606d8ed4b..7ae8ef8600d1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableCreateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableCreateSamples.java @@ -16,7 +16,7 @@ public final class TableCreateSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableOperationPut.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationPut.json */ /** * Sample code: TableOperationPut. @@ -33,7 +33,7 @@ public static void tableOperationPut(com.azure.resourcemanager.AzureResourceMana /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableOperationPutOrPatchAcls. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationPutOrPatchAcls. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableDeleteSamples.java index ec379bc01ee8..38779c978bf2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableDeleteSamples.java @@ -10,7 +10,7 @@ public final class TableDeleteSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableOperationDelete.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationDelete.json */ /** * Sample code: TableOperationDelete. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableGetSamples.java index f98f9e01df73..befbc0e20ed8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableGetSamples.java @@ -10,7 +10,7 @@ public final class TableGetSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableOperationGet.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationGet.json */ /** * Sample code: TableOperationGet. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableListSamples.java index aeecdc32d954..ff3d0659ac41 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableListSamples.java @@ -10,7 +10,7 @@ public final class TableListSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableOperationList.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationList.json */ /** * Sample code: TableOperationList. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableServicesGetServicePropertiesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableServicesGetServicePropertiesSamples.java index 35260791fe95..77857dcf9eef 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableServicesGetServicePropertiesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableServicesGetServicePropertiesSamples.java @@ -10,7 +10,7 @@ public final class TableServicesGetServicePropertiesSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableServicesGet.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableServicesGet.json */ /** * Sample code: TableServicesGet. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableServicesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableServicesListSamples.java index 80447de1030d..8be15dc89b21 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableServicesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableServicesListSamples.java @@ -10,7 +10,7 @@ public final class TableServicesListSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableServicesList.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableServicesList.json */ /** * Sample code: TableServicesList. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableServicesSetServicePropertiesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableServicesSetServicePropertiesSamples.java index d2d188df36ec..dfaa31e8c867 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableServicesSetServicePropertiesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableServicesSetServicePropertiesSamples.java @@ -16,7 +16,7 @@ public final class TableServicesSetServicePropertiesSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableServicesPut.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableServicesPut.json */ /** * Sample code: TableServicesPut. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableUpdateSamples.java index 4c25a9c29a72..96fc9b4268dd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/TableUpdateSamples.java @@ -16,7 +16,7 @@ public final class TableUpdateSamples { /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableOperationPutOrPatchAcls. + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationPutOrPatchAcls. * json */ /** @@ -48,7 +48,7 @@ public static void tableOperationPutOrPatchAcls(com.azure.resourcemanager.AzureR /* * x-ms-original-file: - * specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableOperationPatch.json + * specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationPatch.json */ /** * Sample code: TableOperationPatch. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/UsagesListByLocationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/UsagesListByLocationSamples.java index fb04bc9c1b34..72f64eac0fa0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/UsagesListByLocationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/UsagesListByLocationSamples.java @@ -9,7 +9,7 @@ */ public final class UsagesListByLocationSamples { /* - * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ + * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ * StorageAccountListLocationUsage.json */ /** diff --git a/sdk/storage/azure-resourcemanager-storage/CHANGELOG.md b/sdk/storage/azure-resourcemanager-storage/CHANGELOG.md index d2f932767ac3..fd82cdf15b18 100644 --- a/sdk/storage/azure-resourcemanager-storage/CHANGELOG.md +++ b/sdk/storage/azure-resourcemanager-storage/CHANGELOG.md @@ -6,7 +6,7 @@ #### Dependency Updates -- Updated `api-version` to `2025-01-01`. +- Updated core dependency from resources. ## 2.53.1 (2025-08-05) diff --git a/sdk/storage/azure-resourcemanager-storage/assets.json b/sdk/storage/azure-resourcemanager-storage/assets.json index 5e61c01c2e35..b15d56574b30 100644 --- a/sdk/storage/azure-resourcemanager-storage/assets.json +++ b/sdk/storage/azure-resourcemanager-storage/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "java", "TagPrefix": "java/storage/azure-resourcemanager-storage", - "Tag": "java/storage/azure-resourcemanager-storage_003642a829" + "Tag": "java/storage/azure-resourcemanager-storage_f7a81c9575" } diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/SkuInformationInner.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/SkuInformationInner.java index e6af7b16a933..d5951b834406 100644 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/SkuInformationInner.java +++ b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/SkuInformationInner.java @@ -13,7 +13,6 @@ import com.azure.resourcemanager.storage.models.Kind; import com.azure.resourcemanager.storage.models.Restriction; import com.azure.resourcemanager.storage.models.SkuCapability; -import com.azure.resourcemanager.storage.models.SkuInformationLocationInfoItem; import com.azure.resourcemanager.storage.models.SkuName; import com.azure.resourcemanager.storage.models.SkuTier; import java.io.IOException; @@ -51,11 +50,6 @@ public final class SkuInformationInner implements JsonSerializable locations; - /* - * The locationInfo property. - */ - private List locationInfo; - /* * The capability information in the specified SKU, including file encryption, network ACLs, change notification, * etc. @@ -132,26 +126,6 @@ public List locations() { return this.locations; } - /** - * Get the locationInfo property: The locationInfo property. - * - * @return the locationInfo value. - */ - public List locationInfo() { - return this.locationInfo; - } - - /** - * Set the locationInfo property: The locationInfo property. - * - * @param locationInfo the locationInfo value to set. - * @return the SkuInformationInner object itself. - */ - public SkuInformationInner withLocationInfo(List locationInfo) { - this.locationInfo = locationInfo; - return this; - } - /** * Get the capabilities property: The capability information in the specified SKU, including file encryption, * network ACLs, change notification, etc. @@ -194,9 +168,6 @@ public void validate() { throw LOGGER.atError() .log(new IllegalArgumentException("Missing required property name in model SkuInformationInner")); } - if (locationInfo() != null) { - locationInfo().forEach(e -> e.validate()); - } if (capabilities() != null) { capabilities().forEach(e -> e.validate()); } @@ -214,7 +185,6 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("name", this.name == null ? null : this.name.toString()); - jsonWriter.writeArrayField("locationInfo", this.locationInfo, (writer, element) -> writer.writeJson(element)); jsonWriter.writeArrayField("restrictions", this.restrictions, (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -246,10 +216,6 @@ public static SkuInformationInner fromJson(JsonReader jsonReader) throws IOExcep } else if ("locations".equals(fieldName)) { List locations = reader.readArray(reader1 -> reader1.getString()); deserializedSkuInformationInner.locations = locations; - } else if ("locationInfo".equals(fieldName)) { - List locationInfo - = reader.readArray(reader1 -> SkuInformationLocationInfoItem.fromJson(reader1)); - deserializedSkuInformationInner.locationInfo = locationInfo; } else if ("capabilities".equals(fieldName)) { List capabilities = reader.readArray(reader1 -> SkuCapability.fromJson(reader1)); deserializedSkuInformationInner.capabilities = capabilities; diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/StorageAccountInner.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/StorageAccountInner.java index 85565082b4de..b142ec12bdad 100644 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/StorageAccountInner.java +++ b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/StorageAccountInner.java @@ -15,7 +15,6 @@ import com.azure.resourcemanager.storage.models.AzureFilesIdentityBasedAuthentication; import com.azure.resourcemanager.storage.models.CustomDomain; import com.azure.resourcemanager.storage.models.DnsEndpointType; -import com.azure.resourcemanager.storage.models.DualStackEndpointPreference; import com.azure.resourcemanager.storage.models.Encryption; import com.azure.resourcemanager.storage.models.Endpoints; import com.azure.resourcemanager.storage.models.ExtendedLocation; @@ -28,7 +27,6 @@ import com.azure.resourcemanager.storage.models.LargeFileSharesState; import com.azure.resourcemanager.storage.models.MinimumTlsVersion; import com.azure.resourcemanager.storage.models.NetworkRuleSet; -import com.azure.resourcemanager.storage.models.Placement; import com.azure.resourcemanager.storage.models.ProvisioningState; import com.azure.resourcemanager.storage.models.PublicNetworkAccess; import com.azure.resourcemanager.storage.models.RoutingPreference; @@ -65,16 +63,6 @@ public final class StorageAccountInner extends Resource { */ private ExtendedLocation extendedLocation; - /* - * Optional. Gets or sets the pinned logical availability zone for the storage account. - */ - private List zones; - - /* - * Optional. Gets or sets the zonal placement details for the storage account. - */ - private Placement placement; - /* * Properties of the storage account. */ @@ -159,46 +147,6 @@ public StorageAccountInner withExtendedLocation(ExtendedLocation extendedLocatio return this; } - /** - * Get the zones property: Optional. Gets or sets the pinned logical availability zone for the storage account. - * - * @return the zones value. - */ - public List zones() { - return this.zones; - } - - /** - * Set the zones property: Optional. Gets or sets the pinned logical availability zone for the storage account. - * - * @param zones the zones value to set. - * @return the StorageAccountInner object itself. - */ - public StorageAccountInner withZones(List zones) { - this.zones = zones; - return this; - } - - /** - * Get the placement property: Optional. Gets or sets the zonal placement details for the storage account. - * - * @return the placement value. - */ - public Placement placement() { - return this.placement; - } - - /** - * Set the placement property: Optional. Gets or sets the zonal placement details for the storage account. - * - * @param placement the placement value to set. - * @return the StorageAccountInner object itself. - */ - public StorageAccountInner withPlacement(Placement placement) { - this.placement = placement; - return this; - } - /** * Get the innerProperties property: Properties of the storage account. * @@ -630,32 +578,6 @@ public StorageAccountInner withRoutingPreference(RoutingPreference routingPrefer return this; } - /** - * Get the dualStackEndpointPreference property: Maintains information about the Internet protocol opted by the - * user. - * - * @return the dualStackEndpointPreference value. - */ - public DualStackEndpointPreference dualStackEndpointPreference() { - return this.innerProperties() == null ? null : this.innerProperties().dualStackEndpointPreference(); - } - - /** - * Set the dualStackEndpointPreference property: Maintains information about the Internet protocol opted by the - * user. - * - * @param dualStackEndpointPreference the dualStackEndpointPreference value to set. - * @return the StorageAccountInner object itself. - */ - public StorageAccountInner - withDualStackEndpointPreference(DualStackEndpointPreference dualStackEndpointPreference) { - if (this.innerProperties() == null) { - this.innerProperties = new StorageAccountPropertiesInner(); - } - this.innerProperties().withDualStackEndpointPreference(dualStackEndpointPreference); - return this; - } - /** * Get the blobRestoreStatus property: Blob restore status. * @@ -985,9 +907,6 @@ public void validate() { if (extendedLocation() != null) { extendedLocation().validate(); } - if (placement() != null) { - placement().validate(); - } if (innerProperties() != null) { innerProperties().validate(); } @@ -1003,8 +922,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); jsonWriter.writeJsonField("identity", this.identity); jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); - jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("placement", this.placement); jsonWriter.writeJsonField("properties", this.innerProperties); return jsonWriter.writeEndObject(); } @@ -1044,11 +961,6 @@ public static StorageAccountInner fromJson(JsonReader jsonReader) throws IOExcep deserializedStorageAccountInner.identity = Identity.fromJson(reader); } else if ("extendedLocation".equals(fieldName)) { deserializedStorageAccountInner.extendedLocation = ExtendedLocation.fromJson(reader); - } else if ("zones".equals(fieldName)) { - List zones = reader.readArray(reader1 -> reader1.getString()); - deserializedStorageAccountInner.zones = zones; - } else if ("placement".equals(fieldName)) { - deserializedStorageAccountInner.placement = Placement.fromJson(reader); } else if ("properties".equals(fieldName)) { deserializedStorageAccountInner.innerProperties = StorageAccountPropertiesInner.fromJson(reader); } else { diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/StorageAccountMigrationInner.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/StorageAccountMigrationInner.java index d239bdb8439f..4bf641e4fe1f 100644 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/StorageAccountMigrationInner.java +++ b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/StorageAccountMigrationInner.java @@ -36,7 +36,7 @@ public final class StorageAccountMigrationInner implements JsonSerializable { diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/StorageAccountPropertiesCreateParameters.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/StorageAccountPropertiesCreateParameters.java index 64d6253b0612..66596beff34f 100644 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/StorageAccountPropertiesCreateParameters.java +++ b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/StorageAccountPropertiesCreateParameters.java @@ -14,7 +14,6 @@ import com.azure.resourcemanager.storage.models.AzureFilesIdentityBasedAuthentication; import com.azure.resourcemanager.storage.models.CustomDomain; import com.azure.resourcemanager.storage.models.DnsEndpointType; -import com.azure.resourcemanager.storage.models.DualStackEndpointPreference; import com.azure.resourcemanager.storage.models.Encryption; import com.azure.resourcemanager.storage.models.ImmutableStorageAccount; import com.azure.resourcemanager.storage.models.KeyPolicy; @@ -118,11 +117,6 @@ public final class StorageAccountPropertiesCreateParameters */ private RoutingPreference routingPreference; - /* - * Maintains information about the Internet protocol opted by the user. - */ - private DualStackEndpointPreference dualStackEndpointPreference; - /* * Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is * false for this property. @@ -523,29 +517,6 @@ public StorageAccountPropertiesCreateParameters withRoutingPreference(RoutingPre return this; } - /** - * Get the dualStackEndpointPreference property: Maintains information about the Internet protocol opted by the - * user. - * - * @return the dualStackEndpointPreference value. - */ - public DualStackEndpointPreference dualStackEndpointPreference() { - return this.dualStackEndpointPreference; - } - - /** - * Set the dualStackEndpointPreference property: Maintains information about the Internet protocol opted by the - * user. - * - * @param dualStackEndpointPreference the dualStackEndpointPreference value to set. - * @return the StorageAccountPropertiesCreateParameters object itself. - */ - public StorageAccountPropertiesCreateParameters - withDualStackEndpointPreference(DualStackEndpointPreference dualStackEndpointPreference) { - this.dualStackEndpointPreference = dualStackEndpointPreference; - return this; - } - /** * Get the allowBlobPublicAccess property: Allow or disallow public access to all blobs or containers in the storage * account. The default interpretation is false for this property. @@ -760,9 +731,6 @@ public void validate() { if (routingPreference() != null) { routingPreference().validate(); } - if (dualStackEndpointPreference() != null) { - dualStackEndpointPreference().validate(); - } if (immutableStorageWithVersioning() != null) { immutableStorageWithVersioning().validate(); } @@ -793,7 +761,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("largeFileSharesState", this.largeFileSharesState == null ? null : this.largeFileSharesState.toString()); jsonWriter.writeJsonField("routingPreference", this.routingPreference); - jsonWriter.writeJsonField("dualStackEndpointPreference", this.dualStackEndpointPreference); jsonWriter.writeBooleanField("allowBlobPublicAccess", this.allowBlobPublicAccess); jsonWriter.writeStringField("minimumTlsVersion", this.minimumTlsVersion == null ? null : this.minimumTlsVersion.toString()); @@ -867,9 +834,6 @@ public static StorageAccountPropertiesCreateParameters fromJson(JsonReader jsonR } else if ("routingPreference".equals(fieldName)) { deserializedStorageAccountPropertiesCreateParameters.routingPreference = RoutingPreference.fromJson(reader); - } else if ("dualStackEndpointPreference".equals(fieldName)) { - deserializedStorageAccountPropertiesCreateParameters.dualStackEndpointPreference - = DualStackEndpointPreference.fromJson(reader); } else if ("allowBlobPublicAccess".equals(fieldName)) { deserializedStorageAccountPropertiesCreateParameters.allowBlobPublicAccess = reader.getNullable(JsonReader::getBoolean); diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/StorageAccountPropertiesInner.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/StorageAccountPropertiesInner.java index f06d8e0154c5..dbfbfca3a835 100644 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/StorageAccountPropertiesInner.java +++ b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/StorageAccountPropertiesInner.java @@ -16,7 +16,6 @@ import com.azure.resourcemanager.storage.models.AzureFilesIdentityBasedAuthentication; import com.azure.resourcemanager.storage.models.CustomDomain; import com.azure.resourcemanager.storage.models.DnsEndpointType; -import com.azure.resourcemanager.storage.models.DualStackEndpointPreference; import com.azure.resourcemanager.storage.models.Encryption; import com.azure.resourcemanager.storage.models.Endpoints; import com.azure.resourcemanager.storage.models.GeoReplicationStats; @@ -183,11 +182,6 @@ public final class StorageAccountPropertiesInner implements JsonSerializable { /* - * Specifies the primary domain that the AD DNS server is authoritative for. This property is required if - * directoryServiceOptions is set to AD (AD DS authentication). If directoryServiceOptions is set to AADDS (Entra DS - * authentication), providing this property is optional, as it will be inferred automatically if omitted. If - * directoryServiceOptions is set to AADKERB (Entra authentication), this property is optional; it is needed to - * support configuration of directory- and file-level permissions via Windows File Explorer, but is not required for - * authentication. + * Specifies the primary domain that the AD DNS server is authoritative for. */ private String domainName; /* - * Specifies the NetBIOS domain name. If directoryServiceOptions is set to AD (AD DS authentication), this property - * is required. Otherwise, it can be omitted. + * Specifies the NetBIOS domain name. */ private String netBiosDomainName; /* - * Specifies the Active Directory forest to get. If directoryServiceOptions is set to AD (AD DS authentication), - * this property is required. Otherwise, it can be omitted. + * Specifies the Active Directory forest to get. */ private String forestName; /* - * Specifies the domain GUID. If directoryServiceOptions is set to AD (AD DS authentication), this property is - * required. If directoryServiceOptions is set to AADDS (Entra DS authentication), this property can be omitted. If - * directoryServiceOptions is set to AADKERB (Entra authentication), this property is optional; it is needed to - * support configuration of directory- and file-level permissions via Windows File Explorer, but is not required for - * authentication. + * Specifies the domain GUID. */ private String domainGuid; /* - * Specifies the security identifier (SID) of the AD domain. If directoryServiceOptions is set to AD (AD DS - * authentication), this property is required. Otherwise, it can be omitted. + * Specifies the security identifier (SID). */ private String domainSid; /* - * Specifies the security identifier (SID) for Azure Storage. If directoryServiceOptions is set to AD (AD DS - * authentication), this property is required. Otherwise, it can be omitted. + * Specifies the security identifier (SID) for Azure Storage. */ private String azureStorageSid; /* - * Specifies the Active Directory SAMAccountName for Azure Storage. If directoryServiceOptions is set to AD (AD DS - * authentication), this property is optional. If provided, accountType should also be provided. For - * directoryServiceOptions AADDS (Entra DS authentication) or AADKERB (Entra authentication), this property can be - * omitted. + * Specifies the Active Directory SAMAccountName for Azure Storage. */ private String samAccountName; /* - * Specifies the Active Directory account type for Azure Storage. If directoryServiceOptions is set to AD (AD DS - * authentication), this property is optional. If provided, samAccountName should also be provided. For - * directoryServiceOptions AADDS (Entra DS authentication) or AADKERB (Entra authentication), this property can be - * omitted. + * Specifies the Active Directory account type for Azure Storage. */ private ActiveDirectoryPropertiesAccountType accountType; @@ -82,12 +64,7 @@ public ActiveDirectoryProperties() { } /** - * Get the domainName property: Specifies the primary domain that the AD DNS server is authoritative for. This - * property is required if directoryServiceOptions is set to AD (AD DS authentication). If directoryServiceOptions - * is set to AADDS (Entra DS authentication), providing this property is optional, as it will be inferred - * automatically if omitted. If directoryServiceOptions is set to AADKERB (Entra authentication), this property is - * optional; it is needed to support configuration of directory- and file-level permissions via Windows File - * Explorer, but is not required for authentication. + * Get the domainName property: Specifies the primary domain that the AD DNS server is authoritative for. * * @return the domainName value. */ @@ -96,12 +73,7 @@ public String domainName() { } /** - * Set the domainName property: Specifies the primary domain that the AD DNS server is authoritative for. This - * property is required if directoryServiceOptions is set to AD (AD DS authentication). If directoryServiceOptions - * is set to AADDS (Entra DS authentication), providing this property is optional, as it will be inferred - * automatically if omitted. If directoryServiceOptions is set to AADKERB (Entra authentication), this property is - * optional; it is needed to support configuration of directory- and file-level permissions via Windows File - * Explorer, but is not required for authentication. + * Set the domainName property: Specifies the primary domain that the AD DNS server is authoritative for. * * @param domainName the domainName value to set. * @return the ActiveDirectoryProperties object itself. @@ -112,8 +84,7 @@ public ActiveDirectoryProperties withDomainName(String domainName) { } /** - * Get the netBiosDomainName property: Specifies the NetBIOS domain name. If directoryServiceOptions is set to AD - * (AD DS authentication), this property is required. Otherwise, it can be omitted. + * Get the netBiosDomainName property: Specifies the NetBIOS domain name. * * @return the netBiosDomainName value. */ @@ -122,8 +93,7 @@ public String netBiosDomainName() { } /** - * Set the netBiosDomainName property: Specifies the NetBIOS domain name. If directoryServiceOptions is set to AD - * (AD DS authentication), this property is required. Otherwise, it can be omitted. + * Set the netBiosDomainName property: Specifies the NetBIOS domain name. * * @param netBiosDomainName the netBiosDomainName value to set. * @return the ActiveDirectoryProperties object itself. @@ -134,8 +104,7 @@ public ActiveDirectoryProperties withNetBiosDomainName(String netBiosDomainName) } /** - * Get the forestName property: Specifies the Active Directory forest to get. If directoryServiceOptions is set to - * AD (AD DS authentication), this property is required. Otherwise, it can be omitted. + * Get the forestName property: Specifies the Active Directory forest to get. * * @return the forestName value. */ @@ -144,8 +113,7 @@ public String forestName() { } /** - * Set the forestName property: Specifies the Active Directory forest to get. If directoryServiceOptions is set to - * AD (AD DS authentication), this property is required. Otherwise, it can be omitted. + * Set the forestName property: Specifies the Active Directory forest to get. * * @param forestName the forestName value to set. * @return the ActiveDirectoryProperties object itself. @@ -156,11 +124,7 @@ public ActiveDirectoryProperties withForestName(String forestName) { } /** - * Get the domainGuid property: Specifies the domain GUID. If directoryServiceOptions is set to AD (AD DS - * authentication), this property is required. If directoryServiceOptions is set to AADDS (Entra DS authentication), - * this property can be omitted. If directoryServiceOptions is set to AADKERB (Entra authentication), this property - * is optional; it is needed to support configuration of directory- and file-level permissions via Windows File - * Explorer, but is not required for authentication. + * Get the domainGuid property: Specifies the domain GUID. * * @return the domainGuid value. */ @@ -169,11 +133,7 @@ public String domainGuid() { } /** - * Set the domainGuid property: Specifies the domain GUID. If directoryServiceOptions is set to AD (AD DS - * authentication), this property is required. If directoryServiceOptions is set to AADDS (Entra DS authentication), - * this property can be omitted. If directoryServiceOptions is set to AADKERB (Entra authentication), this property - * is optional; it is needed to support configuration of directory- and file-level permissions via Windows File - * Explorer, but is not required for authentication. + * Set the domainGuid property: Specifies the domain GUID. * * @param domainGuid the domainGuid value to set. * @return the ActiveDirectoryProperties object itself. @@ -184,8 +144,7 @@ public ActiveDirectoryProperties withDomainGuid(String domainGuid) { } /** - * Get the domainSid property: Specifies the security identifier (SID) of the AD domain. If directoryServiceOptions - * is set to AD (AD DS authentication), this property is required. Otherwise, it can be omitted. + * Get the domainSid property: Specifies the security identifier (SID). * * @return the domainSid value. */ @@ -194,8 +153,7 @@ public String domainSid() { } /** - * Set the domainSid property: Specifies the security identifier (SID) of the AD domain. If directoryServiceOptions - * is set to AD (AD DS authentication), this property is required. Otherwise, it can be omitted. + * Set the domainSid property: Specifies the security identifier (SID). * * @param domainSid the domainSid value to set. * @return the ActiveDirectoryProperties object itself. @@ -206,9 +164,7 @@ public ActiveDirectoryProperties withDomainSid(String domainSid) { } /** - * Get the azureStorageSid property: Specifies the security identifier (SID) for Azure Storage. If - * directoryServiceOptions is set to AD (AD DS authentication), this property is required. Otherwise, it can be - * omitted. + * Get the azureStorageSid property: Specifies the security identifier (SID) for Azure Storage. * * @return the azureStorageSid value. */ @@ -217,9 +173,7 @@ public String azureStorageSid() { } /** - * Set the azureStorageSid property: Specifies the security identifier (SID) for Azure Storage. If - * directoryServiceOptions is set to AD (AD DS authentication), this property is required. Otherwise, it can be - * omitted. + * Set the azureStorageSid property: Specifies the security identifier (SID) for Azure Storage. * * @param azureStorageSid the azureStorageSid value to set. * @return the ActiveDirectoryProperties object itself. @@ -230,10 +184,7 @@ public ActiveDirectoryProperties withAzureStorageSid(String azureStorageSid) { } /** - * Get the samAccountName property: Specifies the Active Directory SAMAccountName for Azure Storage. If - * directoryServiceOptions is set to AD (AD DS authentication), this property is optional. If provided, accountType - * should also be provided. For directoryServiceOptions AADDS (Entra DS authentication) or AADKERB (Entra - * authentication), this property can be omitted. + * Get the samAccountName property: Specifies the Active Directory SAMAccountName for Azure Storage. * * @return the samAccountName value. */ @@ -242,10 +193,7 @@ public String samAccountName() { } /** - * Set the samAccountName property: Specifies the Active Directory SAMAccountName for Azure Storage. If - * directoryServiceOptions is set to AD (AD DS authentication), this property is optional. If provided, accountType - * should also be provided. For directoryServiceOptions AADDS (Entra DS authentication) or AADKERB (Entra - * authentication), this property can be omitted. + * Set the samAccountName property: Specifies the Active Directory SAMAccountName for Azure Storage. * * @param samAccountName the samAccountName value to set. * @return the ActiveDirectoryProperties object itself. @@ -256,10 +204,7 @@ public ActiveDirectoryProperties withSamAccountName(String samAccountName) { } /** - * Get the accountType property: Specifies the Active Directory account type for Azure Storage. If - * directoryServiceOptions is set to AD (AD DS authentication), this property is optional. If provided, - * samAccountName should also be provided. For directoryServiceOptions AADDS (Entra DS authentication) or AADKERB - * (Entra authentication), this property can be omitted. + * Get the accountType property: Specifies the Active Directory account type for Azure Storage. * * @return the accountType value. */ @@ -268,10 +213,7 @@ public ActiveDirectoryPropertiesAccountType accountType() { } /** - * Set the accountType property: Specifies the Active Directory account type for Azure Storage. If - * directoryServiceOptions is set to AD (AD DS authentication), this property is optional. If provided, - * samAccountName should also be provided. For directoryServiceOptions AADDS (Entra DS authentication) or AADKERB - * (Entra authentication), this property can be omitted. + * Set the accountType property: Specifies the Active Directory account type for Azure Storage. * * @param accountType the accountType value to set. * @return the ActiveDirectoryProperties object itself. @@ -287,8 +229,20 @@ public ActiveDirectoryProperties withAccountType(ActiveDirectoryPropertiesAccoun * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (domainName() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property domainName in model ActiveDirectoryProperties")); + } + if (domainGuid() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property domainGuid in model ActiveDirectoryProperties")); + } } + private static final ClientLogger LOGGER = new ClientLogger(ActiveDirectoryProperties.class); + /** * {@inheritDoc} */ @@ -296,9 +250,9 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("domainName", this.domainName); + jsonWriter.writeStringField("domainGuid", this.domainGuid); jsonWriter.writeStringField("netBiosDomainName", this.netBiosDomainName); jsonWriter.writeStringField("forestName", this.forestName); - jsonWriter.writeStringField("domainGuid", this.domainGuid); jsonWriter.writeStringField("domainSid", this.domainSid); jsonWriter.writeStringField("azureStorageSid", this.azureStorageSid); jsonWriter.writeStringField("samAccountName", this.samAccountName); @@ -312,6 +266,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ActiveDirectoryProperties if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ActiveDirectoryProperties. */ public static ActiveDirectoryProperties fromJson(JsonReader jsonReader) throws IOException { @@ -323,12 +278,12 @@ public static ActiveDirectoryProperties fromJson(JsonReader jsonReader) throws I if ("domainName".equals(fieldName)) { deserializedActiveDirectoryProperties.domainName = reader.getString(); + } else if ("domainGuid".equals(fieldName)) { + deserializedActiveDirectoryProperties.domainGuid = reader.getString(); } else if ("netBiosDomainName".equals(fieldName)) { deserializedActiveDirectoryProperties.netBiosDomainName = reader.getString(); } else if ("forestName".equals(fieldName)) { deserializedActiveDirectoryProperties.forestName = reader.getString(); - } else if ("domainGuid".equals(fieldName)) { - deserializedActiveDirectoryProperties.domainGuid = reader.getString(); } else if ("domainSid".equals(fieldName)) { deserializedActiveDirectoryProperties.domainSid = reader.getString(); } else if ("azureStorageSid".equals(fieldName)) { diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/ActiveDirectoryPropertiesAccountType.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/ActiveDirectoryPropertiesAccountType.java index d4b213f12414..ae4c5348c310 100644 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/ActiveDirectoryPropertiesAccountType.java +++ b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/ActiveDirectoryPropertiesAccountType.java @@ -8,10 +8,7 @@ import java.util.Collection; /** - * Specifies the Active Directory account type for Azure Storage. If directoryServiceOptions is set to AD (AD DS - * authentication), this property is optional. If provided, samAccountName should also be provided. For - * directoryServiceOptions AADDS (Entra DS authentication) or AADKERB (Entra authentication), this property can be - * omitted. + * Specifies the Active Directory account type for Azure Storage. */ public final class ActiveDirectoryPropertiesAccountType extends ExpandableStringEnum { diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/AzureFilesIdentityBasedAuthentication.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/AzureFilesIdentityBasedAuthentication.java index e40836d2c329..4fb8a9dc47c6 100644 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/AzureFilesIdentityBasedAuthentication.java +++ b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/AzureFilesIdentityBasedAuthentication.java @@ -24,9 +24,7 @@ public final class AzureFilesIdentityBasedAuthentication private DirectoryServiceOptions directoryServiceOptions; /* - * Additional information about the directory service. Required if directoryServiceOptions is AD (AD DS - * authentication). Optional for directoryServiceOptions AADDS (Entra DS authentication) and AADKERB (Entra - * authentication). + * Required if directoryServiceOptions are AD, optional if they are AADKERB. */ private ActiveDirectoryProperties activeDirectoryProperties; @@ -35,11 +33,6 @@ public final class AzureFilesIdentityBasedAuthentication */ private DefaultSharePermission defaultSharePermission; - /* - * Required for Managed Identities access using OAuth over SMB. - */ - private SmbOAuthSettings smbOAuthSettings; - /** * Creates an instance of AzureFilesIdentityBasedAuthentication class. */ @@ -70,9 +63,8 @@ public DirectoryServiceOptions directoryServiceOptions() { } /** - * Get the activeDirectoryProperties property: Additional information about the directory service. Required if - * directoryServiceOptions is AD (AD DS authentication). Optional for directoryServiceOptions AADDS (Entra DS - * authentication) and AADKERB (Entra authentication). + * Get the activeDirectoryProperties property: Required if directoryServiceOptions are AD, optional if they are + * AADKERB. * * @return the activeDirectoryProperties value. */ @@ -81,9 +73,8 @@ public ActiveDirectoryProperties activeDirectoryProperties() { } /** - * Set the activeDirectoryProperties property: Additional information about the directory service. Required if - * directoryServiceOptions is AD (AD DS authentication). Optional for directoryServiceOptions AADDS (Entra DS - * authentication) and AADKERB (Entra authentication). + * Set the activeDirectoryProperties property: Required if directoryServiceOptions are AD, optional if they are + * AADKERB. * * @param activeDirectoryProperties the activeDirectoryProperties value to set. * @return the AzureFilesIdentityBasedAuthentication object itself. @@ -117,26 +108,6 @@ public DefaultSharePermission defaultSharePermission() { return this; } - /** - * Get the smbOAuthSettings property: Required for Managed Identities access using OAuth over SMB. - * - * @return the smbOAuthSettings value. - */ - public SmbOAuthSettings smbOAuthSettings() { - return this.smbOAuthSettings; - } - - /** - * Set the smbOAuthSettings property: Required for Managed Identities access using OAuth over SMB. - * - * @param smbOAuthSettings the smbOAuthSettings value to set. - * @return the AzureFilesIdentityBasedAuthentication object itself. - */ - public AzureFilesIdentityBasedAuthentication withSmbOAuthSettings(SmbOAuthSettings smbOAuthSettings) { - this.smbOAuthSettings = smbOAuthSettings; - return this; - } - /** * Validates the instance. * @@ -151,9 +122,6 @@ public void validate() { if (activeDirectoryProperties() != null) { activeDirectoryProperties().validate(); } - if (smbOAuthSettings() != null) { - smbOAuthSettings().validate(); - } } private static final ClientLogger LOGGER = new ClientLogger(AzureFilesIdentityBasedAuthentication.class); @@ -169,7 +137,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("activeDirectoryProperties", this.activeDirectoryProperties); jsonWriter.writeStringField("defaultSharePermission", this.defaultSharePermission == null ? null : this.defaultSharePermission.toString()); - jsonWriter.writeJsonField("smbOAuthSettings", this.smbOAuthSettings); return jsonWriter.writeEndObject(); } @@ -199,9 +166,6 @@ public static AzureFilesIdentityBasedAuthentication fromJson(JsonReader jsonRead } else if ("defaultSharePermission".equals(fieldName)) { deserializedAzureFilesIdentityBasedAuthentication.defaultSharePermission = DefaultSharePermission.fromString(reader.getString()); - } else if ("smbOAuthSettings".equals(fieldName)) { - deserializedAzureFilesIdentityBasedAuthentication.smbOAuthSettings - = SmbOAuthSettings.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/DualStackEndpointPreference.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/DualStackEndpointPreference.java deleted file mode 100644 index 7ca8b9b7d042..000000000000 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/DualStackEndpointPreference.java +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storage.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Dual-stack endpoint preference defines whether IPv6 endpoints are going to be published. - */ -@Fluent -public final class DualStackEndpointPreference implements JsonSerializable { - /* - * A boolean flag which indicates whether IPv6 storage endpoints are to be published. - */ - private Boolean publishIpv6Endpoint; - - /** - * Creates an instance of DualStackEndpointPreference class. - */ - public DualStackEndpointPreference() { - } - - /** - * Get the publishIpv6Endpoint property: A boolean flag which indicates whether IPv6 storage endpoints are to be - * published. - * - * @return the publishIpv6Endpoint value. - */ - public Boolean publishIpv6Endpoint() { - return this.publishIpv6Endpoint; - } - - /** - * Set the publishIpv6Endpoint property: A boolean flag which indicates whether IPv6 storage endpoints are to be - * published. - * - * @param publishIpv6Endpoint the publishIpv6Endpoint value to set. - * @return the DualStackEndpointPreference object itself. - */ - public DualStackEndpointPreference withPublishIpv6Endpoint(Boolean publishIpv6Endpoint) { - this.publishIpv6Endpoint = publishIpv6Endpoint; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeBooleanField("publishIpv6Endpoint", this.publishIpv6Endpoint); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DualStackEndpointPreference from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DualStackEndpointPreference if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the DualStackEndpointPreference. - */ - public static DualStackEndpointPreference fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DualStackEndpointPreference deserializedDualStackEndpointPreference = new DualStackEndpointPreference(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("publishIpv6Endpoint".equals(fieldName)) { - deserializedDualStackEndpointPreference.publishIpv6Endpoint - = reader.getNullable(JsonReader::getBoolean); - } else { - reader.skipChildren(); - } - } - - return deserializedDualStackEndpointPreference; - }); - } -} diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/EncryptionIdentity.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/EncryptionIdentity.java index 4a9fd8f7d5bb..b4c487bf2253 100644 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/EncryptionIdentity.java +++ b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/EncryptionIdentity.java @@ -94,7 +94,11 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("userAssignedIdentity", this.encryptionUserAssignedIdentity); + if (encryptionUserAssignedIdentity() != null) { + jsonWriter.writeStringField("userAssignedIdentity", this.encryptionUserAssignedIdentity); + } else { + jsonWriter.writeNullField("userAssignedIdentity"); + } jsonWriter.writeStringField("federatedIdentityClientId", this.encryptionFederatedIdentityClientId); return jsonWriter.writeEndObject(); } diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/EncryptionInTransit.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/EncryptionInTransit.java deleted file mode 100644 index 43cf1d827f9c..000000000000 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/EncryptionInTransit.java +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storage.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Encryption in transit setting. - */ -@Fluent -public final class EncryptionInTransit implements JsonSerializable { - /* - * Indicates whether encryption in transit is required - */ - private Boolean required; - - /** - * Creates an instance of EncryptionInTransit class. - */ - public EncryptionInTransit() { - } - - /** - * Get the required property: Indicates whether encryption in transit is required. - * - * @return the required value. - */ - public Boolean required() { - return this.required; - } - - /** - * Set the required property: Indicates whether encryption in transit is required. - * - * @param required the required value to set. - * @return the EncryptionInTransit object itself. - */ - public EncryptionInTransit withRequired(Boolean required) { - this.required = required; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeBooleanField("required", this.required); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of EncryptionInTransit from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of EncryptionInTransit if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IOException If an error occurs while reading the EncryptionInTransit. - */ - public static EncryptionInTransit fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - EncryptionInTransit deserializedEncryptionInTransit = new EncryptionInTransit(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("required".equals(fieldName)) { - deserializedEncryptionInTransit.required = reader.getNullable(JsonReader::getBoolean); - } else { - reader.skipChildren(); - } - } - - return deserializedEncryptionInTransit; - }); - } -} diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/Endpoints.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/Endpoints.java index 6900c5c91336..815c2706de12 100644 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/Endpoints.java +++ b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/Endpoints.java @@ -56,11 +56,6 @@ public final class Endpoints implements JsonSerializable { */ private StorageAccountInternetEndpoints internetEndpoints; - /* - * Gets the IPv6 storage endpoints. - */ - private StorageAccountIpv6Endpoints ipv6Endpoints; - /** * Creates an instance of Endpoints class. */ @@ -161,26 +156,6 @@ public Endpoints withInternetEndpoints(StorageAccountInternetEndpoints internetE return this; } - /** - * Get the ipv6Endpoints property: Gets the IPv6 storage endpoints. - * - * @return the ipv6Endpoints value. - */ - public StorageAccountIpv6Endpoints ipv6Endpoints() { - return this.ipv6Endpoints; - } - - /** - * Set the ipv6Endpoints property: Gets the IPv6 storage endpoints. - * - * @param ipv6Endpoints the ipv6Endpoints value to set. - * @return the Endpoints object itself. - */ - public Endpoints withIpv6Endpoints(StorageAccountIpv6Endpoints ipv6Endpoints) { - this.ipv6Endpoints = ipv6Endpoints; - return this; - } - /** * Validates the instance. * @@ -193,9 +168,6 @@ public void validate() { if (internetEndpoints() != null) { internetEndpoints().validate(); } - if (ipv6Endpoints() != null) { - ipv6Endpoints().validate(); - } } /** @@ -206,7 +178,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("microsoftEndpoints", this.microsoftEndpoints); jsonWriter.writeJsonField("internetEndpoints", this.internetEndpoints); - jsonWriter.writeJsonField("ipv6Endpoints", this.ipv6Endpoints); return jsonWriter.writeEndObject(); } @@ -241,8 +212,6 @@ public static Endpoints fromJson(JsonReader jsonReader) throws IOException { deserializedEndpoints.microsoftEndpoints = StorageAccountMicrosoftEndpoints.fromJson(reader); } else if ("internetEndpoints".equals(fieldName)) { deserializedEndpoints.internetEndpoints = StorageAccountInternetEndpoints.fromJson(reader); - } else if ("ipv6Endpoints".equals(fieldName)) { - deserializedEndpoints.ipv6Endpoints = StorageAccountIpv6Endpoints.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/IpRule.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/IpRule.java index 6542a4e54f10..b6117f7968c1 100644 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/IpRule.java +++ b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/IpRule.java @@ -18,7 +18,7 @@ @Fluent public final class IpRule implements JsonSerializable { /* - * Specifies the IP or IP range in CIDR format. + * Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. */ private String ipAddressOrRange; @@ -34,7 +34,7 @@ public IpRule() { } /** - * Get the ipAddressOrRange property: Specifies the IP or IP range in CIDR format. + * Get the ipAddressOrRange property: Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. * * @return the ipAddressOrRange value. */ @@ -43,7 +43,7 @@ public String ipAddressOrRange() { } /** - * Set the ipAddressOrRange property: Specifies the IP or IP range in CIDR format. + * Set the ipAddressOrRange property: Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. * * @param ipAddressOrRange the ipAddressOrRange value to set. * @return the IpRule object itself. diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/NetworkRuleSet.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/NetworkRuleSet.java index 5f5efad803b8..3e3f3d691656 100644 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/NetworkRuleSet.java +++ b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/NetworkRuleSet.java @@ -39,11 +39,6 @@ public final class NetworkRuleSet implements JsonSerializable { */ private List ipRules; - /* - * Sets the IPv6 ACL rules. - */ - private List ipv6Rules; - /* * Specifies the default action of allow or deny when no other rules match. */ @@ -139,26 +134,6 @@ public NetworkRuleSet withIpRules(List ipRules) { return this; } - /** - * Get the ipv6Rules property: Sets the IPv6 ACL rules. - * - * @return the ipv6Rules value. - */ - public List ipv6Rules() { - return this.ipv6Rules; - } - - /** - * Set the ipv6Rules property: Sets the IPv6 ACL rules. - * - * @param ipv6Rules the ipv6Rules value to set. - * @return the NetworkRuleSet object itself. - */ - public NetworkRuleSet withIpv6Rules(List ipv6Rules) { - this.ipv6Rules = ipv6Rules; - return this; - } - /** * Get the defaultAction property: Specifies the default action of allow or deny when no other rules match. * @@ -194,9 +169,6 @@ public void validate() { if (ipRules() != null) { ipRules().forEach(e -> e.validate()); } - if (ipv6Rules() != null) { - ipv6Rules().forEach(e -> e.validate()); - } if (defaultAction() == null) { throw LOGGER.atError() .log(new IllegalArgumentException("Missing required property defaultAction in model NetworkRuleSet")); @@ -218,7 +190,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeArrayField("virtualNetworkRules", this.virtualNetworkRules, (writer, element) -> writer.writeJson(element)); jsonWriter.writeArrayField("ipRules", this.ipRules, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeArrayField("ipv6Rules", this.ipv6Rules, (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -253,9 +224,6 @@ public static NetworkRuleSet fromJson(JsonReader jsonReader) throws IOException } else if ("ipRules".equals(fieldName)) { List ipRules = reader.readArray(reader1 -> IpRule.fromJson(reader1)); deserializedNetworkRuleSet.ipRules = ipRules; - } else if ("ipv6Rules".equals(fieldName)) { - List ipv6Rules = reader.readArray(reader1 -> IpRule.fromJson(reader1)); - deserializedNetworkRuleSet.ipv6Rules = ipv6Rules; } else { reader.skipChildren(); } diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/NfsSetting.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/NfsSetting.java deleted file mode 100644 index 765c4400a3c0..000000000000 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/NfsSetting.java +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storage.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Setting for NFS protocol. - */ -@Fluent -public final class NfsSetting implements JsonSerializable { - /* - * Encryption in transit setting. - */ - private EncryptionInTransit encryptionInTransit; - - /** - * Creates an instance of NfsSetting class. - */ - public NfsSetting() { - } - - /** - * Get the encryptionInTransit property: Encryption in transit setting. - * - * @return the encryptionInTransit value. - */ - public EncryptionInTransit encryptionInTransit() { - return this.encryptionInTransit; - } - - /** - * Set the encryptionInTransit property: Encryption in transit setting. - * - * @param encryptionInTransit the encryptionInTransit value to set. - * @return the NfsSetting object itself. - */ - public NfsSetting withEncryptionInTransit(EncryptionInTransit encryptionInTransit) { - this.encryptionInTransit = encryptionInTransit; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (encryptionInTransit() != null) { - encryptionInTransit().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("encryptionInTransit", this.encryptionInTransit); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of NfsSetting from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of NfsSetting if the JsonReader was pointing to an instance of it, or null if it was pointing - * to JSON null. - * @throws IOException If an error occurs while reading the NfsSetting. - */ - public static NfsSetting fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - NfsSetting deserializedNfsSetting = new NfsSetting(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("encryptionInTransit".equals(fieldName)) { - deserializedNfsSetting.encryptionInTransit = EncryptionInTransit.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedNfsSetting; - }); - } -} diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/Placement.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/Placement.java deleted file mode 100644 index 1987c272d70b..000000000000 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/Placement.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storage.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * The complex type of the zonal placement details. - */ -@Fluent -public final class Placement implements JsonSerializable { - /* - * The availability zone pinning policy for the storage account. - */ - private ZonePlacementPolicy zonePlacementPolicy; - - /** - * Creates an instance of Placement class. - */ - public Placement() { - } - - /** - * Get the zonePlacementPolicy property: The availability zone pinning policy for the storage account. - * - * @return the zonePlacementPolicy value. - */ - public ZonePlacementPolicy zonePlacementPolicy() { - return this.zonePlacementPolicy; - } - - /** - * Set the zonePlacementPolicy property: The availability zone pinning policy for the storage account. - * - * @param zonePlacementPolicy the zonePlacementPolicy value to set. - * @return the Placement object itself. - */ - public Placement withZonePlacementPolicy(ZonePlacementPolicy zonePlacementPolicy) { - this.zonePlacementPolicy = zonePlacementPolicy; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("zonePlacementPolicy", - this.zonePlacementPolicy == null ? null : this.zonePlacementPolicy.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of Placement from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of Placement if the JsonReader was pointing to an instance of it, or null if it was pointing - * to JSON null. - * @throws IOException If an error occurs while reading the Placement. - */ - public static Placement fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - Placement deserializedPlacement = new Placement(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("zonePlacementPolicy".equals(fieldName)) { - deserializedPlacement.zonePlacementPolicy = ZonePlacementPolicy.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedPlacement; - }); - } -} diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/ProtocolSettings.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/ProtocolSettings.java index bf7ba0e12e2e..9ef7dc9792ae 100644 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/ProtocolSettings.java +++ b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/ProtocolSettings.java @@ -21,11 +21,6 @@ public final class ProtocolSettings implements JsonSerializable { - /* - * Describes the location for the product where storage account resource can be created. - */ - private String location; - - /* - * Describes the available zones for the product where storage account resource can be created. - */ - private List zones; - - /** - * Creates an instance of SkuInformationLocationInfoItem class. - */ - public SkuInformationLocationInfoItem() { - } - - /** - * Get the location property: Describes the location for the product where storage account resource can be created. - * - * @return the location value. - */ - public String location() { - return this.location; - } - - /** - * Get the zones property: Describes the available zones for the product where storage account resource can be - * created. - * - * @return the zones value. - */ - public List zones() { - return this.zones; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SkuInformationLocationInfoItem from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SkuInformationLocationInfoItem if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the SkuInformationLocationInfoItem. - */ - public static SkuInformationLocationInfoItem fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SkuInformationLocationInfoItem deserializedSkuInformationLocationInfoItem - = new SkuInformationLocationInfoItem(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("location".equals(fieldName)) { - deserializedSkuInformationLocationInfoItem.location = reader.getString(); - } else if ("zones".equals(fieldName)) { - List zones = reader.readArray(reader1 -> reader1.getString()); - deserializedSkuInformationLocationInfoItem.zones = zones; - } else { - reader.skipChildren(); - } - } - - return deserializedSkuInformationLocationInfoItem; - }); - } -} diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/SmbOAuthSettings.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/SmbOAuthSettings.java deleted file mode 100644 index 9e0ce685487e..000000000000 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/SmbOAuthSettings.java +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storage.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Setting property for Managed Identity access over SMB using OAuth. - */ -@Fluent -public final class SmbOAuthSettings implements JsonSerializable { - /* - * Specifies if managed identities can access SMB shares using OAuth. The default interpretation is false for this - * property. - */ - private Boolean isSmbOAuthEnabled; - - /** - * Creates an instance of SmbOAuthSettings class. - */ - public SmbOAuthSettings() { - } - - /** - * Get the isSmbOAuthEnabled property: Specifies if managed identities can access SMB shares using OAuth. The - * default interpretation is false for this property. - * - * @return the isSmbOAuthEnabled value. - */ - public Boolean isSmbOAuthEnabled() { - return this.isSmbOAuthEnabled; - } - - /** - * Set the isSmbOAuthEnabled property: Specifies if managed identities can access SMB shares using OAuth. The - * default interpretation is false for this property. - * - * @param isSmbOAuthEnabled the isSmbOAuthEnabled value to set. - * @return the SmbOAuthSettings object itself. - */ - public SmbOAuthSettings withIsSmbOAuthEnabled(Boolean isSmbOAuthEnabled) { - this.isSmbOAuthEnabled = isSmbOAuthEnabled; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeBooleanField("isSmbOAuthEnabled", this.isSmbOAuthEnabled); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SmbOAuthSettings from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SmbOAuthSettings if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IOException If an error occurs while reading the SmbOAuthSettings. - */ - public static SmbOAuthSettings fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SmbOAuthSettings deserializedSmbOAuthSettings = new SmbOAuthSettings(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("isSmbOAuthEnabled".equals(fieldName)) { - deserializedSmbOAuthSettings.isSmbOAuthEnabled = reader.getNullable(JsonReader::getBoolean); - } else { - reader.skipChildren(); - } - } - - return deserializedSmbOAuthSettings; - }); - } -} diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/SmbSetting.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/SmbSetting.java index 05004308e95e..fd2d0f6205a8 100644 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/SmbSetting.java +++ b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/SmbSetting.java @@ -45,11 +45,6 @@ public final class SmbSetting implements JsonSerializable { */ private String channelEncryption; - /* - * Encryption in transit setting. - */ - private EncryptionInTransit encryptionInTransit; - /** * Creates an instance of SmbSetting class. */ @@ -164,26 +159,6 @@ public SmbSetting withChannelEncryption(String channelEncryption) { return this; } - /** - * Get the encryptionInTransit property: Encryption in transit setting. - * - * @return the encryptionInTransit value. - */ - public EncryptionInTransit encryptionInTransit() { - return this.encryptionInTransit; - } - - /** - * Set the encryptionInTransit property: Encryption in transit setting. - * - * @param encryptionInTransit the encryptionInTransit value to set. - * @return the SmbSetting object itself. - */ - public SmbSetting withEncryptionInTransit(EncryptionInTransit encryptionInTransit) { - this.encryptionInTransit = encryptionInTransit; - return this; - } - /** * Validates the instance. * @@ -193,9 +168,6 @@ public void validate() { if (multichannel() != null) { multichannel().validate(); } - if (encryptionInTransit() != null) { - encryptionInTransit().validate(); - } } /** @@ -209,7 +181,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("authenticationMethods", this.authenticationMethods); jsonWriter.writeStringField("kerberosTicketEncryption", this.kerberosTicketEncryption); jsonWriter.writeStringField("channelEncryption", this.channelEncryption); - jsonWriter.writeJsonField("encryptionInTransit", this.encryptionInTransit); return jsonWriter.writeEndObject(); } @@ -238,8 +209,6 @@ public static SmbSetting fromJson(JsonReader jsonReader) throws IOException { deserializedSmbSetting.kerberosTicketEncryption = reader.getString(); } else if ("channelEncryption".equals(fieldName)) { deserializedSmbSetting.channelEncryption = reader.getString(); - } else if ("encryptionInTransit".equals(fieldName)) { - deserializedSmbSetting.encryptionInTransit = EncryptionInTransit.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/StorageAccountCreateParameters.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/StorageAccountCreateParameters.java index 9febe41c5224..74ac85595198 100644 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/StorageAccountCreateParameters.java +++ b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/StorageAccountCreateParameters.java @@ -12,7 +12,6 @@ import com.azure.json.JsonWriter; import com.azure.resourcemanager.storage.fluent.models.StorageAccountPropertiesCreateParameters; import java.io.IOException; -import java.util.List; import java.util.Map; /** @@ -43,16 +42,6 @@ public final class StorageAccountCreateParameters implements JsonSerializable zones; - - /* - * Optional. Gets or sets the zonal placement details for the storage account. - */ - private Placement placement; - /* * Gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and * grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag @@ -165,46 +154,6 @@ public StorageAccountCreateParameters withExtendedLocation(ExtendedLocation exte return this; } - /** - * Get the zones property: Optional. Gets or sets the pinned logical availability zone for the storage account. - * - * @return the zones value. - */ - public List zones() { - return this.zones; - } - - /** - * Set the zones property: Optional. Gets or sets the pinned logical availability zone for the storage account. - * - * @param zones the zones value to set. - * @return the StorageAccountCreateParameters object itself. - */ - public StorageAccountCreateParameters withZones(List zones) { - this.zones = zones; - return this; - } - - /** - * Get the placement property: Optional. Gets or sets the zonal placement details for the storage account. - * - * @return the placement value. - */ - public Placement placement() { - return this.placement; - } - - /** - * Set the placement property: Optional. Gets or sets the zonal placement details for the storage account. - * - * @param placement the placement value to set. - * @return the StorageAccountCreateParameters object itself. - */ - public StorageAccountCreateParameters withPlacement(Placement placement) { - this.placement = placement; - return this; - } - /** * Get the tags property: Gets or sets a list of key value pairs that describe the resource. These tags can be used * for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a @@ -651,32 +600,6 @@ public StorageAccountCreateParameters withRoutingPreference(RoutingPreference ro return this; } - /** - * Get the dualStackEndpointPreference property: Maintains information about the Internet protocol opted by the - * user. - * - * @return the dualStackEndpointPreference value. - */ - public DualStackEndpointPreference dualStackEndpointPreference() { - return this.innerProperties() == null ? null : this.innerProperties().dualStackEndpointPreference(); - } - - /** - * Set the dualStackEndpointPreference property: Maintains information about the Internet protocol opted by the - * user. - * - * @param dualStackEndpointPreference the dualStackEndpointPreference value to set. - * @return the StorageAccountCreateParameters object itself. - */ - public StorageAccountCreateParameters - withDualStackEndpointPreference(DualStackEndpointPreference dualStackEndpointPreference) { - if (this.innerProperties() == null) { - this.innerProperties = new StorageAccountPropertiesCreateParameters(); - } - this.innerProperties().withDualStackEndpointPreference(dualStackEndpointPreference); - return this; - } - /** * Get the allowBlobPublicAccess property: Allow or disallow public access to all blobs or containers in the storage * account. The default interpretation is false for this property. @@ -912,9 +835,6 @@ public void validate() { if (extendedLocation() != null) { extendedLocation().validate(); } - if (placement() != null) { - placement().validate(); - } if (identity() != null) { identity().validate(); } @@ -935,8 +855,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString()); jsonWriter.writeStringField("location", this.location); jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); - jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("placement", this.placement); jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); jsonWriter.writeJsonField("identity", this.identity); jsonWriter.writeJsonField("properties", this.innerProperties); @@ -968,11 +886,6 @@ public static StorageAccountCreateParameters fromJson(JsonReader jsonReader) thr deserializedStorageAccountCreateParameters.location = reader.getString(); } else if ("extendedLocation".equals(fieldName)) { deserializedStorageAccountCreateParameters.extendedLocation = ExtendedLocation.fromJson(reader); - } else if ("zones".equals(fieldName)) { - List zones = reader.readArray(reader1 -> reader1.getString()); - deserializedStorageAccountCreateParameters.zones = zones; - } else if ("placement".equals(fieldName)) { - deserializedStorageAccountCreateParameters.placement = Placement.fromJson(reader); } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedStorageAccountCreateParameters.tags = tags; diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/StorageAccountIpv6Endpoints.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/StorageAccountIpv6Endpoints.java deleted file mode 100644 index c1d541e86208..000000000000 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/StorageAccountIpv6Endpoints.java +++ /dev/null @@ -1,225 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storage.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * The URIs that are used to perform a retrieval of a public blob, queue, table, web or dfs object via an IPv6 endpoint. - */ -@Fluent -public final class StorageAccountIpv6Endpoints implements JsonSerializable { - /* - * Gets the blob endpoint. - */ - private String blob; - - /* - * Gets the queue endpoint. - */ - private String queue; - - /* - * Gets the table endpoint. - */ - private String table; - - /* - * Gets the file endpoint. - */ - private String file; - - /* - * Gets the web endpoint. - */ - private String web; - - /* - * Gets the dfs endpoint. - */ - private String dfs; - - /* - * Gets the microsoft routing storage endpoints. - */ - private StorageAccountMicrosoftEndpoints microsoftEndpoints; - - /* - * Gets the internet routing storage endpoints - */ - private StorageAccountInternetEndpoints internetEndpoints; - - /** - * Creates an instance of StorageAccountIpv6Endpoints class. - */ - public StorageAccountIpv6Endpoints() { - } - - /** - * Get the blob property: Gets the blob endpoint. - * - * @return the blob value. - */ - public String blob() { - return this.blob; - } - - /** - * Get the queue property: Gets the queue endpoint. - * - * @return the queue value. - */ - public String queue() { - return this.queue; - } - - /** - * Get the table property: Gets the table endpoint. - * - * @return the table value. - */ - public String table() { - return this.table; - } - - /** - * Get the file property: Gets the file endpoint. - * - * @return the file value. - */ - public String file() { - return this.file; - } - - /** - * Get the web property: Gets the web endpoint. - * - * @return the web value. - */ - public String web() { - return this.web; - } - - /** - * Get the dfs property: Gets the dfs endpoint. - * - * @return the dfs value. - */ - public String dfs() { - return this.dfs; - } - - /** - * Get the microsoftEndpoints property: Gets the microsoft routing storage endpoints. - * - * @return the microsoftEndpoints value. - */ - public StorageAccountMicrosoftEndpoints microsoftEndpoints() { - return this.microsoftEndpoints; - } - - /** - * Set the microsoftEndpoints property: Gets the microsoft routing storage endpoints. - * - * @param microsoftEndpoints the microsoftEndpoints value to set. - * @return the StorageAccountIpv6Endpoints object itself. - */ - public StorageAccountIpv6Endpoints withMicrosoftEndpoints(StorageAccountMicrosoftEndpoints microsoftEndpoints) { - this.microsoftEndpoints = microsoftEndpoints; - return this; - } - - /** - * Get the internetEndpoints property: Gets the internet routing storage endpoints. - * - * @return the internetEndpoints value. - */ - public StorageAccountInternetEndpoints internetEndpoints() { - return this.internetEndpoints; - } - - /** - * Set the internetEndpoints property: Gets the internet routing storage endpoints. - * - * @param internetEndpoints the internetEndpoints value to set. - * @return the StorageAccountIpv6Endpoints object itself. - */ - public StorageAccountIpv6Endpoints withInternetEndpoints(StorageAccountInternetEndpoints internetEndpoints) { - this.internetEndpoints = internetEndpoints; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (microsoftEndpoints() != null) { - microsoftEndpoints().validate(); - } - if (internetEndpoints() != null) { - internetEndpoints().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("microsoftEndpoints", this.microsoftEndpoints); - jsonWriter.writeJsonField("internetEndpoints", this.internetEndpoints); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of StorageAccountIpv6Endpoints from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of StorageAccountIpv6Endpoints if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the StorageAccountIpv6Endpoints. - */ - public static StorageAccountIpv6Endpoints fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - StorageAccountIpv6Endpoints deserializedStorageAccountIpv6Endpoints = new StorageAccountIpv6Endpoints(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("blob".equals(fieldName)) { - deserializedStorageAccountIpv6Endpoints.blob = reader.getString(); - } else if ("queue".equals(fieldName)) { - deserializedStorageAccountIpv6Endpoints.queue = reader.getString(); - } else if ("table".equals(fieldName)) { - deserializedStorageAccountIpv6Endpoints.table = reader.getString(); - } else if ("file".equals(fieldName)) { - deserializedStorageAccountIpv6Endpoints.file = reader.getString(); - } else if ("web".equals(fieldName)) { - deserializedStorageAccountIpv6Endpoints.web = reader.getString(); - } else if ("dfs".equals(fieldName)) { - deserializedStorageAccountIpv6Endpoints.dfs = reader.getString(); - } else if ("microsoftEndpoints".equals(fieldName)) { - deserializedStorageAccountIpv6Endpoints.microsoftEndpoints - = StorageAccountMicrosoftEndpoints.fromJson(reader); - } else if ("internetEndpoints".equals(fieldName)) { - deserializedStorageAccountIpv6Endpoints.internetEndpoints - = StorageAccountInternetEndpoints.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedStorageAccountIpv6Endpoints; - }); - } -} diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/StorageAccountUpdateParameters.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/StorageAccountUpdateParameters.java index fdc1e010d7cc..e11ae3d9b3d0 100644 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/StorageAccountUpdateParameters.java +++ b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/StorageAccountUpdateParameters.java @@ -11,7 +11,6 @@ import com.azure.json.JsonWriter; import com.azure.resourcemanager.storage.fluent.models.StorageAccountPropertiesUpdateParameters; import java.io.IOException; -import java.util.List; import java.util.Map; /** @@ -47,16 +46,6 @@ public final class StorageAccountUpdateParameters implements JsonSerializable zones; - - /* - * Optional. Gets or sets the zonal placement details for the storage account. - */ - private Placement placement; - /** * Creates an instance of StorageAccountUpdateParameters class. */ @@ -162,46 +151,6 @@ public StorageAccountUpdateParameters withKind(Kind kind) { return this; } - /** - * Get the zones property: Optional. Gets or sets the pinned logical availability zone for the storage account. - * - * @return the zones value. - */ - public List zones() { - return this.zones; - } - - /** - * Set the zones property: Optional. Gets or sets the pinned logical availability zone for the storage account. - * - * @param zones the zones value to set. - * @return the StorageAccountUpdateParameters object itself. - */ - public StorageAccountUpdateParameters withZones(List zones) { - this.zones = zones; - return this; - } - - /** - * Get the placement property: Optional. Gets or sets the zonal placement details for the storage account. - * - * @return the placement value. - */ - public Placement placement() { - return this.placement; - } - - /** - * Set the placement property: Optional. Gets or sets the zonal placement details for the storage account. - * - * @param placement the placement value to set. - * @return the StorageAccountUpdateParameters object itself. - */ - public StorageAccountUpdateParameters withPlacement(Placement placement) { - this.placement = placement; - return this; - } - /** * Get the customDomain property: Custom domain assigned to the storage account by the user. Name is the CNAME * source. Only one custom domain is supported per storage account at this time. To clear the existing custom @@ -518,32 +467,6 @@ public StorageAccountUpdateParameters withRoutingPreference(RoutingPreference ro return this; } - /** - * Get the dualStackEndpointPreference property: Maintains information about the Internet protocol opted by the - * user. - * - * @return the dualStackEndpointPreference value. - */ - public DualStackEndpointPreference dualStackEndpointPreference() { - return this.innerProperties() == null ? null : this.innerProperties().dualStackEndpointPreference(); - } - - /** - * Set the dualStackEndpointPreference property: Maintains information about the Internet protocol opted by the - * user. - * - * @param dualStackEndpointPreference the dualStackEndpointPreference value to set. - * @return the StorageAccountUpdateParameters object itself. - */ - public StorageAccountUpdateParameters - withDualStackEndpointPreference(DualStackEndpointPreference dualStackEndpointPreference) { - if (this.innerProperties() == null) { - this.innerProperties = new StorageAccountPropertiesUpdateParameters(); - } - this.innerProperties().withDualStackEndpointPreference(dualStackEndpointPreference); - return this; - } - /** * Get the allowBlobPublicAccess property: Allow or disallow public access to all blobs or containers in the storage * account. The default interpretation is false for this property. @@ -797,9 +720,6 @@ public void validate() { if (innerProperties() != null) { innerProperties().validate(); } - if (placement() != null) { - placement().validate(); - } } /** @@ -813,8 +733,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("identity", this.identity); jsonWriter.writeJsonField("properties", this.innerProperties); jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString()); - jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("placement", this.placement); return jsonWriter.writeEndObject(); } @@ -846,11 +764,6 @@ public static StorageAccountUpdateParameters fromJson(JsonReader jsonReader) thr = StorageAccountPropertiesUpdateParameters.fromJson(reader); } else if ("kind".equals(fieldName)) { deserializedStorageAccountUpdateParameters.kind = Kind.fromString(reader.getString()); - } else if ("zones".equals(fieldName)) { - List zones = reader.readArray(reader1 -> reader1.getString()); - deserializedStorageAccountUpdateParameters.zones = zones; - } else if ("placement".equals(fieldName)) { - deserializedStorageAccountUpdateParameters.placement = Placement.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/ZonePlacementPolicy.java b/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/ZonePlacementPolicy.java deleted file mode 100644 index 108fed3cc40f..000000000000 --- a/sdk/storage/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/ZonePlacementPolicy.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storage.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The availability zone pinning policy for the storage account. - */ -public final class ZonePlacementPolicy extends ExpandableStringEnum { - /** - * Static value Any for ZonePlacementPolicy. - */ - public static final ZonePlacementPolicy ANY = fromString("Any"); - - /** - * Static value None for ZonePlacementPolicy. - */ - public static final ZonePlacementPolicy NONE = fromString("None"); - - /** - * Creates a new instance of ZonePlacementPolicy value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ZonePlacementPolicy() { - } - - /** - * Creates or finds a ZonePlacementPolicy from its string representation. - * - * @param name a name to look for. - * @return the corresponding ZonePlacementPolicy. - */ - public static ZonePlacementPolicy fromString(String name) { - return fromString(name, ZonePlacementPolicy.class); - } - - /** - * Gets known ZonePlacementPolicy values. - * - * @return known ZonePlacementPolicy values. - */ - public static Collection values() { - return values(ZonePlacementPolicy.class); - } -}