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
32 changes: 32 additions & 0 deletions eng/lintingconfigs/revapi/track2/revapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1337,6 +1337,38 @@
"match": "class com\\.azure\\.resourcemanager\\.compute\\.models\\.(CommunityGalleryImageList|CommunityGalleryImageVersionList|DiskAccessList|DiskEncryptionSetList|DiskList|DiskRestorePointList|GalleryApplicationList|GalleryApplicationVersionList|GalleryImageList|GalleryImageVersionList|GalleryInVMAccessControlProfileList|GalleryInVMAccessControlProfileVersionList|GalleryList|GalleryScriptList|GalleryScriptVersionList|GallerySoftDeletedResourceList|ResourceUriList|SharedGalleryImageList|SharedGalleryImageVersionList|SharedGalleryList|SnapshotList|VirtualMachineScaleSetListOSUpgradeHistory)"
},
"justification": "Pageable models moved to implementation package. Unlikely used by user."
},
{
"code": "java.method.visibilityReduced",
"old" : {
"matcher": "regex",
"match": "method void com\\.azure\\.resourcemanager\\.redis\\.models\\.(OperationDisplay|RedisInstanceDetails|RedisLinkedServer)::\\<init\\>\\(\\)"
},
"justification": "Output-only immutable models' constructors are now private."
},
{
"code": "java.method.removed",
"old" : {
"matcher": "regex",
"match": "method .* com\\.azure\\.resourcemanager\\.redis\\.models\\.OperationDisplay\\:\\:with.*\\(.*\\).*"
},
"justification": "Output-only immutable models' setters are removed if no explicit usage."
},
{
"code": "java.method.visibilityReduced",
"old" : {
"matcher": "regex",
"match": "method .* com\\.azure\\.resourcemanager\\.redis\\.models\\.OperationStatusResult\\:\\:with.*\\(.*\\).*"
},
"justification": "Output-only immutable models' setters are now package-private if it's being used by child class."
},
{
"code": "java.class.removed",
"old" : {
"matcher": "regex",
"match": "class com\\.azure\\.resourcemanager\\.redis\\.models\\.(OperationListResult|RedisListResult|RedisCacheAccessPolicyAssignmentList|RedisFirewallRuleListResult|RedisPatchScheduleListResult|RedisCacheAccessPolicyList|PrivateLinkResourceListResult|NotificationListResponse|PrivateEndpointConnectionListResult|RedisLinkedServerWithPropertiesList)"
},
"justification": "Pageable models moved to implementation package. Unlikely used by user."
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/redis/azure-resourcemanager-redis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ For documentation on how to use this package, please see [Azure Management Libra
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-redis</artifactId>
<version>2.53.1</version>
<version>2.54.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
2 changes: 1 addition & 1 deletion sdk/redis/azure-resourcemanager-redis/assets.json
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/redis/azure-resourcemanager-redis",
"Tag": "java/redis/azure-resourcemanager-redis_4829c91ebd"
"Tag": "java/redis/azure-resourcemanager-redis_c14ea1781b"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.redis.fluent;

Expand All @@ -22,6 +22,67 @@
* An instance of this class provides access to all the operations defined in AccessPoliciesClient.
*/
public interface AccessPoliciesClient {
/**
* Gets the detailed information about an access policy of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the detailed information about an access policy of a redis cache along with {@link Response} on
* successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<RedisCacheAccessPolicyInner>> getWithResponseAsync(String resourceGroupName, String cacheName,
String accessPolicyName);

/**
* Gets the detailed information about an access policy of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the detailed information about an access policy of a redis cache on successful completion of
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<RedisCacheAccessPolicyInner> getAsync(String resourceGroupName, String cacheName, String accessPolicyName);

/**
* Gets the detailed information about an access policy of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the detailed information about an access policy of a redis cache along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<RedisCacheAccessPolicyInner> getWithResponse(String resourceGroupName, String cacheName,
String accessPolicyName, Context context);

/**
* Gets the detailed information about an access policy of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the detailed information about an access policy of a redis cache.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
RedisCacheAccessPolicyInner get(String resourceGroupName, String cacheName, String accessPolicyName);

/**
* Adds an access policy to the redis cache.
*
Expand Down Expand Up @@ -238,67 +299,6 @@ SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String cacheName, String accessPolicyName, Context context);

/**
* Gets the detailed information about an access policy of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the detailed information about an access policy of a redis cache along with {@link Response} on
* successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<RedisCacheAccessPolicyInner>> getWithResponseAsync(String resourceGroupName, String cacheName,
String accessPolicyName);

/**
* Gets the detailed information about an access policy of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the detailed information about an access policy of a redis cache on successful completion of
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<RedisCacheAccessPolicyInner> getAsync(String resourceGroupName, String cacheName, String accessPolicyName);

/**
* Gets the detailed information about an access policy of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the detailed information about an access policy of a redis cache along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<RedisCacheAccessPolicyInner> getWithResponse(String resourceGroupName, String cacheName,
String accessPolicyName, Context context);

/**
* Gets the detailed information about an access policy of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the detailed information about an access policy of a redis cache.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
RedisCacheAccessPolicyInner get(String resourceGroupName, String cacheName, String accessPolicyName);

/**
* Gets the list of access policies associated with this redis cache.
*
Expand Down
Loading
Loading