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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

### Other Changes

#### Dependency Updates

- Updated code from `api-version` `2024-01-01`.

## 2.51.0 (2025-05-26)

### Other Changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "java",
"TagPrefix": "java/resourcemanager/azure-resourcemanager-storage",
"Tag": "java/resourcemanager/azure-resourcemanager-storage_ceedd20777"
"Tag": "java/resourcemanager/azure-resourcemanager-storage_3df9762af1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public final class BlobContainersClientImpl implements BlobContainersClient {
* to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientBlobContainers")
public interface BlobContainersService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public final class BlobInventoryPoliciesClientImpl implements BlobInventoryPolic
* service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientBlobInventoryPolicies")
public interface BlobInventoryPoliciesService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public final class BlobServicesClientImpl implements BlobServicesClient {
* to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientBlobServices")
public interface BlobServicesService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public final class DeletedAccountsClientImpl implements DeletedAccountsClient {
* service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientDeletedAccounts")
public interface DeletedAccountsService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.Storage/deletedAccounts")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public final class EncryptionScopesClientImpl implements EncryptionScopesClient
* service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientEncryptionScopes")
public interface EncryptionScopesService {
@Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public final class FileServicesClientImpl implements FileServicesClient {
* to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientFileServices")
public interface FileServicesService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public final class FileSharesClientImpl implements FileSharesClient {
* perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientFileShares")
public interface FileSharesService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public final class LocalUsersOperationsClientImpl implements LocalUsersOperation
* service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientLocalUsersOperations")
public interface LocalUsersOperationsService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public final class ManagementPoliciesClientImpl implements ManagementPoliciesCli
* service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientManagementPolicies")
public interface ManagementPoliciesService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public final class NetworkSecurityPerimeterConfigurationsClientImpl
* used by the proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientNetworkSecurityPerimeterConfigurations")
public interface NetworkSecurityPerimeterConfigurationsService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/networkSecurityPerimeterConfigurations")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public final class ObjectReplicationPoliciesOperationsClientImpl implements Obje
* by the proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientObjectReplicationPoliciesOperations")
public interface ObjectReplicationPoliciesOperationsService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public final class OperationsClientImpl implements OperationsClient {
* perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientOperations")
public interface OperationsService {
@Headers({ "Content-Type: application/json" })
@Get("/providers/Microsoft.Storage/operations")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpoi
* proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientPrivateEndpointConnections")
public interface PrivateEndpointConnectionsService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public final class PrivateLinkResourcesClientImpl implements PrivateLinkResource
* service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientPrivateLinkResources")
public interface PrivateLinkResourcesService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateLinkResources")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public final class QueueServicesClientImpl implements QueueServicesClient {
* to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientQueueServices")
public interface QueueServicesService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public final class QueuesClientImpl implements QueuesClient {
* perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientQueues")
public interface QueuesService {
@Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public final class SkusClientImpl implements SkusClient {
* perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientSkus")
public interface SkusService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.Storage/skus")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public final class StorageAccountsClientImpl implements InnerSupportsGet<Storage
* service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientStorageAccounts")
public interface StorageAccountsService {
@Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public final class StorageTaskAssignmentInstancesReportsClientImpl
* used by the proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientStorageTaskAssignmentInstancesReports")
public interface StorageTaskAssignmentInstancesReportsService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}/reports")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public final class StorageTaskAssignmentsClientImpl implements StorageTaskAssign
* service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientStorageTaskAssignments")
public interface StorageTaskAssignmentsService {
@Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public final class StorageTaskAssignmentsInstancesReportsClientImpl
* used by the proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientStorageTaskAssignmentsInstancesReports")
public interface StorageTaskAssignmentsInstancesReportsService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/reports")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public final class TableServicesClientImpl implements TableServicesClient {
* to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientTableServices")
public interface TableServicesService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public final class TablesClientImpl implements TablesClient {
* perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientTables")
public interface TablesService {
@Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public final class UsagesClientImpl implements UsagesClient {
* perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "StorageManagementCli")
@ServiceInterface(name = "StorageManagementClientUsages")
public interface UsagesService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/usages")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public final class TriggerParameters implements JsonSerializable<TriggerParamete
private OffsetDateTime endBy;

/*
* When to start task execution. This is an optional field when ExecutionTrigger.properties.type is 'RunOnce'; this
* When to start task execution. This is a required field when ExecutionTrigger.properties.type is 'RunOnce'; this
* property should not be present when ExecutionTrigger.properties.type is 'OnSchedule'
*/
private OffsetDateTime startOn;
Expand Down Expand Up @@ -152,7 +152,7 @@ public TriggerParameters withEndBy(OffsetDateTime endBy) {
}

/**
* Get the startOn property: When to start task execution. This is an optional field when
* Get the startOn property: When to start task execution. This is a required field when
* ExecutionTrigger.properties.type is 'RunOnce'; this property should not be present when
* ExecutionTrigger.properties.type is 'OnSchedule'.
*
Expand All @@ -163,7 +163,7 @@ public OffsetDateTime startOn() {
}

/**
* Set the startOn property: When to start task execution. This is an optional field when
* Set the startOn property: When to start task execution. This is a required field when
* ExecutionTrigger.properties.type is 'RunOnce'; this property should not be present when
* ExecutionTrigger.properties.type is 'OnSchedule'.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public void canCRUDImmutabilityPolicy() {
.define(saName)
.withRegion(Region.US_EAST)
.withNewResourceGroup(rgName)
.disableSharedKeyAccess()
.create();

BlobContainer container = storageManager.blobContainers()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public void canConfigureNetworkRulesWithCreate() throws Exception {
.define(saName1)
.withRegion(Region.US_EAST)
.withNewResourceGroup(rgName)
.disableSharedKeyAccess()
.create();

Assertions.assertNotNull(storageAccount1.networkSubnetsWithAccess());
Expand All @@ -61,6 +62,7 @@ public void canConfigureNetworkRulesWithCreate() throws Exception {
.withRegion(Region.US_EAST)
.withExistingResourceGroup(resourceGroup)
.withAccessFromIpAddress("23.20.0.0")
.disableSharedKeyAccess()
.create();

Assertions.assertNotNull(storageAccount2.innerModel().networkRuleSet());
Expand Down Expand Up @@ -88,6 +90,7 @@ public void canConfigureNetworkRulesWithCreate() throws Exception {
.withNewResourceGroup(rgName)
.withAccessFromAllNetworks()
.withAccessFromIpAddress("23.20.0.0")
.disableSharedKeyAccess()
.create();

Assertions.assertNotNull(storageAccount3.innerModel().networkRuleSet());
Expand Down Expand Up @@ -115,6 +118,7 @@ public void canConfigureNetworkRulesWithCreate() throws Exception {
.withExistingResourceGroup(resourceGroup)
.withReadAccessToLogEntriesFromAnyNetwork()
.withReadAccessToMetricsFromAnyNetwork()
.disableSharedKeyAccess()
.create();

Assertions.assertNotNull(storageAccount4.innerModel().networkRuleSet());
Expand Down Expand Up @@ -145,6 +149,7 @@ public void canConfigureNetworkRulesWithUpdate() throws Exception {
.define(saName1)
.withRegion(Region.US_EAST)
.withNewResourceGroup(rgName)
.disableSharedKeyAccess()
.create();

Assertions.assertNotNull(storageAccount1.networkSubnetsWithAccess());
Expand Down
Loading
Loading