> listByScopeNextSinglePageAsync(String nextLink,
diff --git a/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/OperationsClientImpl.java b/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/OperationsClientImpl.java
index 8d56948aab5d..52314510f45b 100644
--- a/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/OperationsClientImpl.java
+++ b/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/OperationsClientImpl.java
@@ -60,7 +60,7 @@ public final class OperationsClientImpl implements OperationsClient {
* perform REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "ResourceManagementCl")
+ @ServiceInterface(name = "ResourceManagementClientOperations")
public interface OperationsService {
@Headers({ "Content-Type: application/json" })
@Get("/providers/Microsoft.Resources/operations")
diff --git a/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyAssignmentsClientImpl.java b/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyAssignmentsClientImpl.java
index babe25f7a342..45d45ecde96c 100644
--- a/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyAssignmentsClientImpl.java
+++ b/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyAssignmentsClientImpl.java
@@ -68,7 +68,7 @@ public final class PolicyAssignmentsClientImpl implements InnerSupportsListing> createById(@HostParam("$host") String endp
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> getById(@HostParam("$host") String endpoint,
@PathParam(value = "policyAssignmentId", encoded = true) String policyAssignmentId,
- @QueryParam("$expand") String expand, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Patch("/{policyAssignmentId}")
@@ -256,7 +255,7 @@ public Mono> deleteWithResponseAsync(String scop
return Mono
.error(new IllegalArgumentException("Parameter policyAssignmentName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), scope, policyAssignmentName, apiVersion,
@@ -297,7 +296,7 @@ private Mono> deleteWithResponseAsync(String sco
return Mono
.error(new IllegalArgumentException("Parameter policyAssignmentName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), scope, policyAssignmentName, apiVersion, accept, context);
@@ -412,7 +411,7 @@ public Mono> createWithResponseAsync(String scop
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.create(this.client.getEndpoint(), scope, policyAssignmentName, apiVersion,
@@ -459,7 +458,7 @@ private Mono> createWithResponseAsync(String sco
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.create(this.client.getEndpoint(), scope, policyAssignmentName, apiVersion, parameters, accept,
@@ -574,7 +573,7 @@ public Mono> getWithResponseAsync(String scope,
return Mono
.error(new IllegalArgumentException("Parameter policyAssignmentName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), scope, policyAssignmentName, expand,
@@ -615,7 +614,7 @@ private Mono> getWithResponseAsync(String scope,
return Mono
.error(new IllegalArgumentException("Parameter policyAssignmentName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), scope, policyAssignmentName, expand, apiVersion, accept, context);
@@ -729,7 +728,7 @@ public Mono> updateWithResponseAsync(String scop
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.update(this.client.getEndpoint(), scope, policyAssignmentName, apiVersion,
@@ -776,7 +775,7 @@ private Mono> updateWithResponseAsync(String sco
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.update(this.client.getEndpoint(), scope, policyAssignmentName, apiVersion, parameters, accept,
@@ -904,7 +903,7 @@ private Mono> listByResourceGroupSinglePage
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByResourceGroup(this.client.getEndpoint(),
@@ -960,7 +959,7 @@ private Mono> listByResourceGroupSinglePage
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1215,7 +1214,7 @@ private Mono> listForResourceSinglePageAsyn
if (resourceName == null) {
return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listForResource(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -1302,7 +1301,7 @@ private Mono> listForResourceSinglePageAsyn
if (resourceName == null) {
return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1608,7 +1607,7 @@ private Mono> listForManagementGroupSingleP
return Mono
.error(new IllegalArgumentException("Parameter managementGroupId is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listForManagementGroup(this.client.getEndpoint(), managementGroupId, filter,
@@ -1657,7 +1656,7 @@ private Mono> listForManagementGroupSingleP
return Mono
.error(new IllegalArgumentException("Parameter managementGroupId is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1861,7 +1860,7 @@ private Mono> listSinglePageAsync(String fi
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), filter, expand, top, apiVersion,
@@ -1912,7 +1911,7 @@ private Mono> listSinglePageAsync(String fi
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -2109,7 +2108,7 @@ public Mono> deleteByIdWithResponseAsync(String
return Mono
.error(new IllegalArgumentException("Parameter policyAssignmentId is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil.withContext(
context -> service.deleteById(this.client.getEndpoint(), policyAssignmentId, apiVersion, accept, context))
@@ -2146,7 +2145,7 @@ private Mono> deleteByIdWithResponseAsync(String
return Mono
.error(new IllegalArgumentException("Parameter policyAssignmentId is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.deleteById(this.client.getEndpoint(), policyAssignmentId, apiVersion, accept, context);
@@ -2258,7 +2257,7 @@ public Mono> createByIdWithResponseAsync(String
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createById(this.client.getEndpoint(), policyAssignmentId, apiVersion,
@@ -2303,7 +2302,7 @@ private Mono> createByIdWithResponseAsync(String
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createById(this.client.getEndpoint(), policyAssignmentId, apiVersion, parameters, accept,
@@ -2400,15 +2399,13 @@ public PolicyAssignmentInner createById(String policyAssignmentId, PolicyAssignm
*
* @param policyAssignmentId The ID of the policy assignment to get. Use the format
* '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.
- * @param expand Comma-separated list of additional properties to be included in the response. Supported values are
- * 'LatestDefinitionVersion, EffectiveDefinitionVersion'.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the policy assignment along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getByIdWithResponseAsync(String policyAssignmentId, String expand) {
+ public Mono> getByIdWithResponseAsync(String policyAssignmentId) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -2417,11 +2414,11 @@ public Mono> getByIdWithResponseAsync(String pol
return Mono
.error(new IllegalArgumentException("Parameter policyAssignmentId is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.getById(this.client.getEndpoint(), policyAssignmentId, expand, apiVersion,
- accept, context))
+ .withContext(
+ context -> service.getById(this.client.getEndpoint(), policyAssignmentId, apiVersion, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -2437,8 +2434,6 @@ public Mono> getByIdWithResponseAsync(String pol
*
* @param policyAssignmentId The ID of the policy assignment to get. Use the format
* '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.
- * @param expand Comma-separated list of additional properties to be included in the response. Supported values are
- * 'LatestDefinitionVersion, EffectiveDefinitionVersion'.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -2446,8 +2441,7 @@ public Mono> getByIdWithResponseAsync(String pol
* @return the policy assignment along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getByIdWithResponseAsync(String policyAssignmentId, String expand,
- Context context) {
+ private Mono> getByIdWithResponseAsync(String policyAssignmentId, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -2456,10 +2450,10 @@ private Mono> getByIdWithResponseAsync(String po
return Mono
.error(new IllegalArgumentException("Parameter policyAssignmentId is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.getById(this.client.getEndpoint(), policyAssignmentId, expand, apiVersion, accept, context);
+ return service.getById(this.client.getEndpoint(), policyAssignmentId, apiVersion, accept, context);
}
/**
@@ -2481,8 +2475,7 @@ private Mono> getByIdWithResponseAsync(String po
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono getByIdAsync(String policyAssignmentId) {
- final String expand = null;
- return getByIdWithResponseAsync(policyAssignmentId, expand).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ return getByIdWithResponseAsync(policyAssignmentId).flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -2497,8 +2490,6 @@ public Mono getByIdAsync(String policyAssignmentId) {
*
* @param policyAssignmentId The ID of the policy assignment to get. Use the format
* '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.
- * @param expand Comma-separated list of additional properties to be included in the response. Supported values are
- * 'LatestDefinitionVersion, EffectiveDefinitionVersion'.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -2506,9 +2497,8 @@ public Mono getByIdAsync(String policyAssignmentId) {
* @return the policy assignment along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getByIdWithResponse(String policyAssignmentId, String expand,
- Context context) {
- return getByIdWithResponseAsync(policyAssignmentId, expand, context).block();
+ public Response getByIdWithResponse(String policyAssignmentId, Context context) {
+ return getByIdWithResponseAsync(policyAssignmentId, context).block();
}
/**
@@ -2530,8 +2520,7 @@ public Response getByIdWithResponse(String policyAssignme
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public PolicyAssignmentInner getById(String policyAssignmentId) {
- final String expand = null;
- return getByIdWithResponse(policyAssignmentId, expand, Context.NONE).getValue();
+ return getByIdWithResponse(policyAssignmentId, Context.NONE).getValue();
}
/**
@@ -2570,7 +2559,7 @@ public Mono> updateByIdWithResponseAsync(String
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.updateById(this.client.getEndpoint(), policyAssignmentId, apiVersion,
@@ -2615,7 +2604,7 @@ private Mono> updateByIdWithResponseAsync(String
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.updateById(this.client.getEndpoint(), policyAssignmentId, apiVersion, parameters, accept,
@@ -2701,6 +2690,8 @@ public PolicyAssignmentInner updateById(String policyAssignmentId, PolicyAssignm
}
/**
+ * Retrieves all policy assignments that apply to a resource group.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2728,6 +2719,8 @@ private Mono> listForResourceGroupNextSingl
}
/**
+ * Retrieves all policy assignments that apply to a resource group.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2755,6 +2748,8 @@ private Mono> listForResourceGroupNextSingl
}
/**
+ * Retrieves all policy assignments that apply to a resource.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2781,6 +2776,8 @@ private Mono> listForResourceNextSinglePage
}
/**
+ * Retrieves all policy assignments that apply to a resource.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2808,6 +2805,8 @@ private Mono> listForResourceNextSinglePage
}
/**
+ * Retrieves all policy assignments that apply to a management group.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2835,6 +2834,8 @@ private Mono> listForManagementGroupNextSin
}
/**
+ * Retrieves all policy assignments that apply to a management group.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2862,6 +2863,8 @@ private Mono> listForManagementGroupNextSin
}
/**
+ * Retrieves all policy assignments that apply to a subscription.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2887,6 +2890,8 @@ private Mono> listNextSinglePageAsync(Strin
}
/**
+ * Retrieves all policy assignments that apply to a subscription.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
diff --git a/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyClientImpl.java b/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyClientImpl.java
index cbf56f84b24a..1ab2bbd7da45 100644
--- a/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyClientImpl.java
+++ b/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyClientImpl.java
@@ -16,6 +16,7 @@
import com.azure.resourcemanager.resources.fluent.PolicyExemptionsClient;
import com.azure.resourcemanager.resources.fluent.PolicySetDefinitionVersionsClient;
import com.azure.resourcemanager.resources.fluent.PolicySetDefinitionsClient;
+import com.azure.resourcemanager.resources.fluent.PolicyTokensClient;
import com.azure.resourcemanager.resources.fluentcore.AzureServiceClient;
import java.time.Duration;
@@ -108,6 +109,20 @@ public DataPolicyManifestsClient getDataPolicyManifests() {
return this.dataPolicyManifests;
}
+ /**
+ * The PolicyAssignmentsClient object to access its operations.
+ */
+ private final PolicyAssignmentsClient policyAssignments;
+
+ /**
+ * Gets the PolicyAssignmentsClient object to access its operations.
+ *
+ * @return the PolicyAssignmentsClient object.
+ */
+ public PolicyAssignmentsClient getPolicyAssignments() {
+ return this.policyAssignments;
+ }
+
/**
* The PolicyDefinitionsClient object to access its operations.
*/
@@ -165,17 +180,17 @@ public PolicySetDefinitionVersionsClient getPolicySetDefinitionVersions() {
}
/**
- * The PolicyAssignmentsClient object to access its operations.
+ * The PolicyTokensClient object to access its operations.
*/
- private final PolicyAssignmentsClient policyAssignments;
+ private final PolicyTokensClient policyTokens;
/**
- * Gets the PolicyAssignmentsClient object to access its operations.
+ * Gets the PolicyTokensClient object to access its operations.
*
- * @return the PolicyAssignmentsClient object.
+ * @return the PolicyTokensClient object.
*/
- public PolicyAssignmentsClient getPolicyAssignments() {
- return this.policyAssignments;
+ public PolicyTokensClient getPolicyTokens() {
+ return this.policyTokens;
}
/**
@@ -211,11 +226,12 @@ public PolicyExemptionsClient getPolicyExemptions() {
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
this.dataPolicyManifests = new DataPolicyManifestsClientImpl(this);
+ this.policyAssignments = new PolicyAssignmentsClientImpl(this);
this.policyDefinitions = new PolicyDefinitionsClientImpl(this);
this.policyDefinitionVersions = new PolicyDefinitionVersionsClientImpl(this);
this.policySetDefinitions = new PolicySetDefinitionsClientImpl(this);
this.policySetDefinitionVersions = new PolicySetDefinitionVersionsClientImpl(this);
- this.policyAssignments = new PolicyAssignmentsClientImpl(this);
+ this.policyTokens = new PolicyTokensClientImpl(this);
this.policyExemptions = new PolicyExemptionsClientImpl(this);
}
}
diff --git a/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyDefinitionVersionsClientImpl.java b/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyDefinitionVersionsClientImpl.java
index ccd377391435..5aeb15775e00 100644
--- a/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyDefinitionVersionsClientImpl.java
+++ b/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyDefinitionVersionsClientImpl.java
@@ -66,7 +66,7 @@ public final class PolicyDefinitionVersionsClientImpl
* to perform REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "PolicyClientPolicyDe")
+ @ServiceInterface(name = "PolicyClientPolicyDefinitionVersions")
public interface PolicyDefinitionVersionsService {
@Headers({ "Content-Type: application/json" })
@Post("/providers/Microsoft.Authorization/listPolicyDefinitionVersions")
@@ -233,7 +233,7 @@ public Mono> listAllBuiltinsWit
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listAllBuiltins(this.client.getEndpoint(), apiVersion, accept, context))
@@ -257,7 +257,7 @@ private Mono> listAllBuiltinsWi
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.listAllBuiltins(this.client.getEndpoint(), apiVersion, accept, context);
@@ -329,7 +329,7 @@ public PolicyDefinitionVersionListResultInner listAllBuiltins() {
return Mono
.error(new IllegalArgumentException("Parameter managementGroupName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listAllAtManagementGroup(this.client.getEndpoint(), managementGroupName,
@@ -360,7 +360,7 @@ public PolicyDefinitionVersionListResultInner listAllBuiltins() {
return Mono
.error(new IllegalArgumentException("Parameter managementGroupName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.listAllAtManagementGroup(this.client.getEndpoint(), managementGroupName, apiVersion, accept,
@@ -437,7 +437,7 @@ public Mono> listAllWithRespons
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listAll(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -466,7 +466,7 @@ private Mono> listAllWithRespon
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.listAll(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context);
@@ -555,7 +555,7 @@ public Mono> createOrUpdateWithResponseAs
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -603,7 +603,7 @@ private Mono> createOrUpdateWithResponseA
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), policyDefinitionName,
@@ -705,7 +705,7 @@ public Mono> deleteWithResponseAsync(String policyDefinitionName,
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -746,7 +746,7 @@ private Mono> deleteWithResponseAsync(String policyDefinitionName
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), policyDefinitionName,
@@ -841,7 +841,7 @@ public Mono> getWithResponseAsync(String
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -883,7 +883,7 @@ private Mono> getWithResponseAsync(String
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), policyDefinitionName,
@@ -976,7 +976,7 @@ public Mono> getBuiltInWithResponseAsync(
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getBuiltIn(this.client.getEndpoint(), policyDefinitionName,
@@ -1014,7 +1014,7 @@ private Mono> getBuiltInWithResponseAsync
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getBuiltIn(this.client.getEndpoint(), policyDefinitionName, policyDefinitionVersion, apiVersion,
@@ -1120,7 +1120,7 @@ public Mono> createOrUpdateAtManagementGr
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -1171,7 +1171,7 @@ private Mono> createOrUpdateAtManagementG
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdateAtManagementGroup(this.client.getEndpoint(), managementGroupName,
@@ -1279,7 +1279,7 @@ public Mono> deleteAtManagementGroupWithResponseAsync(String mana
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.deleteAtManagementGroup(this.client.getEndpoint(), managementGroupName,
@@ -1321,7 +1321,7 @@ private Mono> deleteAtManagementGroupWithResponseAsync(String man
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.deleteAtManagementGroup(this.client.getEndpoint(), managementGroupName, policyDefinitionName,
@@ -1425,7 +1425,7 @@ public Mono> getAtManagementGroupWithResp
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getAtManagementGroup(this.client.getEndpoint(), managementGroupName,
@@ -1468,7 +1468,7 @@ private Mono> getAtManagementGroupWithRes
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getAtManagementGroup(this.client.getEndpoint(), managementGroupName, policyDefinitionName,
@@ -1567,7 +1567,7 @@ private Mono> listSinglePageAsync(St
return Mono
.error(new IllegalArgumentException("Parameter policyDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -1606,7 +1606,7 @@ private Mono> listSinglePageAsync(St
return Mono
.error(new IllegalArgumentException("Parameter policyDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1731,7 +1731,7 @@ private Mono> listBuiltInSinglePageA
return Mono
.error(new IllegalArgumentException("Parameter policyDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listBuiltIn(this.client.getEndpoint(), policyDefinitionName, apiVersion,
@@ -1766,7 +1766,7 @@ private Mono> listBuiltInSinglePageA
return Mono
.error(new IllegalArgumentException("Parameter policyDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.listBuiltIn(this.client.getEndpoint(), policyDefinitionName, apiVersion, top, accept, context)
@@ -1896,7 +1896,7 @@ public PagedIterable listBuiltIn(String policyDefi
return Mono
.error(new IllegalArgumentException("Parameter policyDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByManagementGroup(this.client.getEndpoint(), managementGroupName,
@@ -1937,7 +1937,7 @@ private Mono> listByManagementGroupS
return Mono
.error(new IllegalArgumentException("Parameter policyDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -2056,6 +2056,8 @@ public PagedIterable listByManagementGroup(String
}
/**
+ * Retrieves policy definition versions for a given policy definition in a subscription
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2082,6 +2084,8 @@ private Mono> listNextSinglePageAsyn
}
/**
+ * Retrieves policy definition versions for a given policy definition in a subscription
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2110,6 +2114,8 @@ private Mono> listNextSinglePageAsyn
}
/**
+ * Retrieve built-in policy definition versions
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2137,6 +2143,8 @@ private Mono> listBuiltInNextSingleP
}
/**
+ * Retrieve built-in policy definition versions
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2165,6 +2173,8 @@ private Mono> listBuiltInNextSingleP
}
/**
+ * Retrieve policy definition versions in a management group policy definition.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2194,6 +2204,8 @@ private Mono> listBuiltInNextSingleP
}
/**
+ * Retrieve policy definition versions in a management group policy definition.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
diff --git a/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyDefinitionsClientImpl.java b/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyDefinitionsClientImpl.java
index 19787f9a2379..d52920f00fec 100644
--- a/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyDefinitionsClientImpl.java
+++ b/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyDefinitionsClientImpl.java
@@ -63,7 +63,7 @@ public final class PolicyDefinitionsClientImpl implements PolicyDefinitionsClien
* perform REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "PolicyClientPolicyDe")
+ @ServiceInterface(name = "PolicyClientPolicyDefinitions")
public interface PolicyDefinitionsService {
@Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}")
@@ -214,7 +214,7 @@ public Mono> createOrUpdateWithResponseAsync(Str
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -255,7 +255,7 @@ private Mono> createOrUpdateWithResponseAsync(St
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), policyDefinitionName,
@@ -342,7 +342,7 @@ public Mono> deleteWithResponseAsync(String policyDefinitionName)
return Mono
.error(new IllegalArgumentException("Parameter policyDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -376,7 +376,7 @@ private Mono> deleteWithResponseAsync(String policyDefinitionName
return Mono
.error(new IllegalArgumentException("Parameter policyDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), policyDefinitionName,
@@ -456,7 +456,7 @@ public Mono> getWithResponseAsync(String policyD
return Mono
.error(new IllegalArgumentException("Parameter policyDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -490,7 +490,7 @@ private Mono> getWithResponseAsync(String policy
return Mono
.error(new IllegalArgumentException("Parameter policyDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), policyDefinitionName, apiVersion,
@@ -567,7 +567,7 @@ public Mono> getBuiltInWithResponseAsync(String
return Mono
.error(new IllegalArgumentException("Parameter policyDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil.withContext(
context -> service.getBuiltIn(this.client.getEndpoint(), policyDefinitionName, apiVersion, accept, context))
@@ -597,7 +597,7 @@ private Mono> getBuiltInWithResponseAsync(String
return Mono
.error(new IllegalArgumentException("Parameter policyDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getBuiltIn(this.client.getEndpoint(), policyDefinitionName, apiVersion, accept, context);
@@ -685,7 +685,7 @@ public Mono> createOrUpdateAtManagementGroupWith
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdateAtManagementGroup(this.client.getEndpoint(),
@@ -727,7 +727,7 @@ private Mono> createOrUpdateAtManagementGroupWit
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdateAtManagementGroup(this.client.getEndpoint(), managementGroupId,
@@ -822,7 +822,7 @@ public Mono> deleteAtManagementGroupWithResponseAsync(String mana
return Mono
.error(new IllegalArgumentException("Parameter policyDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.deleteAtManagementGroup(this.client.getEndpoint(), managementGroupId,
@@ -858,7 +858,7 @@ private Mono> deleteAtManagementGroupWithResponseAsync(String man
return Mono
.error(new IllegalArgumentException("Parameter policyDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.deleteAtManagementGroup(this.client.getEndpoint(), managementGroupId, policyDefinitionName,
@@ -945,7 +945,7 @@ public Mono> getAtManagementGroupWithResponseAsy
return Mono
.error(new IllegalArgumentException("Parameter policyDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getAtManagementGroup(this.client.getEndpoint(), managementGroupId,
@@ -981,7 +981,7 @@ private Mono> getAtManagementGroupWithResponseAs
return Mono
.error(new IllegalArgumentException("Parameter policyDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getAtManagementGroup(this.client.getEndpoint(), managementGroupId, policyDefinitionName,
@@ -1079,7 +1079,7 @@ private Mono> listSinglePageAsync(String fi
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -1127,7 +1127,7 @@ private Mono> listSinglePageAsync(String fi
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1308,7 +1308,7 @@ private Mono> listBuiltInSinglePageAsync(St
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -1348,7 +1348,7 @@ private Mono> listBuiltInSinglePageAsync(St
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.listBuiltIn(this.client.getEndpoint(), apiVersion, filter, top, accept, context)
@@ -1520,7 +1520,7 @@ private Mono> listByManagementGroupSinglePa
return Mono
.error(new IllegalArgumentException("Parameter managementGroupId is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByManagementGroup(this.client.getEndpoint(), apiVersion,
@@ -1569,7 +1569,7 @@ private Mono> listByManagementGroupSinglePa
return Mono
.error(new IllegalArgumentException("Parameter managementGroupId is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1736,6 +1736,8 @@ public PagedIterable listByManagementGroup(String managem
}
/**
+ * Retrieves policy definitions in a subscription
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -1761,6 +1763,8 @@ private Mono> listNextSinglePageAsync(Strin
}
/**
+ * Retrieves policy definitions in a subscription
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -1787,6 +1791,8 @@ private Mono> listNextSinglePageAsync(Strin
}
/**
+ * Retrieve built-in policy definitions
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -1813,6 +1819,8 @@ private Mono> listBuiltInNextSinglePageAsyn
}
/**
+ * Retrieve built-in policy definitions
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -1840,6 +1848,8 @@ private Mono> listBuiltInNextSinglePageAsyn
}
/**
+ * Retrieve policy definitions in a management group
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -1867,6 +1877,8 @@ private Mono> listByManagementGroupNextSing
}
/**
+ * Retrieve policy definitions in a management group
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
diff --git a/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyExemptionsClientImpl.java b/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyExemptionsClientImpl.java
index b627ff0d1f4a..2e11f424d331 100644
--- a/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyExemptionsClientImpl.java
+++ b/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicyExemptionsClientImpl.java
@@ -68,7 +68,7 @@ public final class PolicyExemptionsClientImpl
* perform REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "PolicyClientPolicyEx")
+ @ServiceInterface(name = "PolicyClientPolicyExemptions")
public interface PolicyExemptionsService {
@Headers({ "Content-Type: application/json" })
@Delete("/{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}")
@@ -1875,6 +1875,8 @@ public PagedIterable listForManagementGroup(String managem
}
/**
+ * Retrieves all policy exemptions that apply to a subscription.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -1900,6 +1902,8 @@ private Mono> listNextSinglePageAsync(String
}
/**
+ * Retrieves all policy exemptions that apply to a subscription.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -1926,6 +1930,8 @@ private Mono> listNextSinglePageAsync(String
}
/**
+ * Retrieves all policy exemptions that apply to a resource group.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -1953,6 +1959,8 @@ private Mono> listForResourceGroupNextSingle
}
/**
+ * Retrieves all policy exemptions that apply to a resource group.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -1980,6 +1988,8 @@ private Mono> listForResourceGroupNextSingle
}
/**
+ * Retrieves all policy exemptions that apply to a resource.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2006,6 +2016,8 @@ private Mono> listForResourceNextSinglePageA
}
/**
+ * Retrieves all policy exemptions that apply to a resource.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2033,6 +2045,8 @@ private Mono> listForResourceNextSinglePageA
}
/**
+ * Retrieves all policy exemptions that apply to a management group.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2060,6 +2074,8 @@ private Mono> listForManagementGroupNextSing
}
/**
+ * Retrieves all policy exemptions that apply to a management group.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
diff --git a/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicySetDefinitionVersionsClientImpl.java b/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicySetDefinitionVersionsClientImpl.java
index f3426186fa1b..72663befee20 100644
--- a/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicySetDefinitionVersionsClientImpl.java
+++ b/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicySetDefinitionVersionsClientImpl.java
@@ -66,7 +66,7 @@ public final class PolicySetDefinitionVersionsClientImpl
* service to perform REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "PolicyClientPolicySe")
+ @ServiceInterface(name = "PolicyClientPolicySetDefinitionVersions")
public interface PolicySetDefinitionVersionsService {
@Headers({ "Content-Type: application/json" })
@Post("/providers/Microsoft.Authorization/listPolicySetDefinitionVersions")
@@ -234,7 +234,7 @@ public Mono> listAllBuiltins
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listAllBuiltins(this.client.getEndpoint(), apiVersion, accept, context))
@@ -260,7 +260,7 @@ public Mono> listAllBuiltins
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.listAllBuiltins(this.client.getEndpoint(), apiVersion, accept, context);
@@ -334,7 +334,7 @@ public PolicySetDefinitionVersionListResultInner listAllBuiltins() {
return Mono
.error(new IllegalArgumentException("Parameter managementGroupName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listAllAtManagementGroup(this.client.getEndpoint(), managementGroupName,
@@ -367,7 +367,7 @@ public PolicySetDefinitionVersionListResultInner listAllBuiltins() {
return Mono
.error(new IllegalArgumentException("Parameter managementGroupName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.listAllAtManagementGroup(this.client.getEndpoint(), managementGroupName, apiVersion, accept,
@@ -448,7 +448,7 @@ public Mono> listAllWithResp
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listAll(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -478,7 +478,7 @@ private Mono> listAllWithRes
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.listAll(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context);
@@ -567,7 +567,7 @@ public Mono> createOrUpdateWithRespons
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -616,7 +616,7 @@ private Mono> createOrUpdateWithRespon
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -723,7 +723,7 @@ public Mono> deleteWithResponseAsync(String policySetDefinitionNa
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -765,7 +765,7 @@ private Mono> deleteWithResponseAsync(String policySetDefinitionN
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), policySetDefinitionName,
@@ -866,7 +866,7 @@ public Mono> getWithResponseAsync(Stri
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -910,7 +910,7 @@ private Mono> getWithResponseAsync(Str
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), policySetDefinitionName,
@@ -1012,7 +1012,7 @@ public Mono> getBuiltInWithResponseAsy
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getBuiltIn(this.client.getEndpoint(), policySetDefinitionName,
@@ -1051,7 +1051,7 @@ private Mono> getBuiltInWithResponseAs
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getBuiltIn(this.client.getEndpoint(), policySetDefinitionName, policyDefinitionVersion, expand,
@@ -1151,7 +1151,7 @@ private Mono> listSinglePageAsync
return Mono.error(
new IllegalArgumentException("Parameter policySetDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -1192,7 +1192,7 @@ private Mono> listSinglePageAsync
return Mono.error(
new IllegalArgumentException("Parameter policySetDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1330,7 +1330,7 @@ public PagedIterable list(String policySetDefin
return Mono.error(
new IllegalArgumentException("Parameter policySetDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listBuiltIn(this.client.getEndpoint(), policySetDefinitionName, apiVersion,
@@ -1368,7 +1368,7 @@ public PagedIterable list(String policySetDefin
return Mono.error(
new IllegalArgumentException("Parameter policySetDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1524,7 +1524,7 @@ public Mono> createOrUpdateAtManagemen
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -1575,7 +1575,7 @@ private Mono> createOrUpdateAtManageme
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdateAtManagementGroup(this.client.getEndpoint(), managementGroupName,
@@ -1687,7 +1687,7 @@ public Mono> deleteAtManagementGroupWithResponseAsync(String mana
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.deleteAtManagementGroup(this.client.getEndpoint(), managementGroupName,
@@ -1730,7 +1730,7 @@ private Mono> deleteAtManagementGroupWithResponseAsync(String man
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.deleteAtManagementGroup(this.client.getEndpoint(), managementGroupName, policySetDefinitionName,
@@ -1839,7 +1839,7 @@ public Mono> getAtManagementGroupWithR
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getAtManagementGroup(this.client.getEndpoint(), managementGroupName,
@@ -1885,7 +1885,7 @@ private Mono> getAtManagementGroupWith
return Mono.error(
new IllegalArgumentException("Parameter policyDefinitionVersion is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getAtManagementGroup(this.client.getEndpoint(), managementGroupName, policySetDefinitionName,
@@ -1995,7 +1995,7 @@ private Mono> listByManagementGro
return Mono.error(
new IllegalArgumentException("Parameter policySetDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByManagementGroup(this.client.getEndpoint(), managementGroupName,
@@ -2038,7 +2038,7 @@ private Mono> listByManagementGro
return Mono.error(
new IllegalArgumentException("Parameter policySetDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -2166,6 +2166,8 @@ public PagedIterable listByManagementGroup(Stri
}
/**
+ * Retrieves the policy set definition versions for a given policy set definition in a subscription.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2192,6 +2194,8 @@ private Mono> listNextSinglePageA
}
/**
+ * Retrieves the policy set definition versions for a given policy set definition in a subscription.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2220,6 +2224,8 @@ private Mono> listNextSinglePageA
}
/**
+ * Retrieves built-in policy set definition versions.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2247,6 +2253,8 @@ private Mono> listBuiltInNextSing
}
/**
+ * Retrieves built-in policy set definition versions.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2275,6 +2283,8 @@ private Mono> listBuiltInNextSing
}
/**
+ * Retrieves all policy set definition versions for a given policy set definition in a management group.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -2304,6 +2314,8 @@ private Mono> listBuiltInNextSing
}
/**
+ * Retrieves all policy set definition versions for a given policy set definition in a management group.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
diff --git a/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicySetDefinitionsClientImpl.java b/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicySetDefinitionsClientImpl.java
index 2c8206941249..b747d635631b 100644
--- a/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicySetDefinitionsClientImpl.java
+++ b/sdk/resources/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/PolicySetDefinitionsClientImpl.java
@@ -63,7 +63,7 @@ public final class PolicySetDefinitionsClientImpl implements PolicySetDefinition
* perform REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "PolicyClientPolicySe")
+ @ServiceInterface(name = "PolicyClientPolicySetDefinitions")
public interface PolicySetDefinitionsService {
@Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}")
@@ -215,7 +215,7 @@ public Mono> createOrUpdateWithResponseAsync(
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -256,7 +256,7 @@ private Mono> createOrUpdateWithResponseAsync
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -344,7 +344,7 @@ public Mono> deleteWithResponseAsync(String policySetDefinitionNa
return Mono.error(
new IllegalArgumentException("Parameter policySetDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -378,7 +378,7 @@ private Mono> deleteWithResponseAsync(String policySetDefinitionN
return Mono.error(
new IllegalArgumentException("Parameter policySetDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), policySetDefinitionName,
@@ -461,7 +461,7 @@ public Mono> getWithResponseAsync(String poli
return Mono.error(
new IllegalArgumentException("Parameter policySetDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(),
@@ -498,7 +498,7 @@ private Mono> getWithResponseAsync(String pol
return Mono.error(
new IllegalArgumentException("Parameter policySetDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), policySetDefinitionName, expand,
@@ -583,7 +583,7 @@ public Mono> getBuiltInWithResponseAsync(Stri
return Mono.error(
new IllegalArgumentException("Parameter policySetDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getBuiltIn(this.client.getEndpoint(), policySetDefinitionName, expand,
@@ -616,7 +616,7 @@ private Mono> getBuiltInWithResponseAsync(Str
return Mono.error(
new IllegalArgumentException("Parameter policySetDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getBuiltIn(this.client.getEndpoint(), policySetDefinitionName, expand, apiVersion, accept,
@@ -717,7 +717,7 @@ private Mono> listSinglePageAsync(String
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion,
@@ -767,7 +767,7 @@ private Mono> listSinglePageAsync(String
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -960,7 +960,7 @@ private Mono> listBuiltInSinglePageAsync
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil.withContext(
context -> service.listBuiltIn(this.client.getEndpoint(), apiVersion, filter, expand, top, accept, context))
@@ -999,7 +999,7 @@ private Mono> listBuiltInSinglePageAsync
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.listBuiltIn(this.client.getEndpoint(), apiVersion, filter, expand, top, accept, context)
@@ -1166,7 +1166,7 @@ public Mono> createOrUpdateAtManagementGroupW
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdateAtManagementGroup(this.client.getEndpoint(),
@@ -1209,7 +1209,7 @@ private Mono> createOrUpdateAtManagementGroup
} else {
parameters.validate();
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdateAtManagementGroup(this.client.getEndpoint(), managementGroupId,
@@ -1304,7 +1304,7 @@ public Mono> deleteAtManagementGroupWithResponseAsync(String mana
return Mono.error(
new IllegalArgumentException("Parameter policySetDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.deleteAtManagementGroup(this.client.getEndpoint(), managementGroupId,
@@ -1340,7 +1340,7 @@ private Mono> deleteAtManagementGroupWithResponseAsync(String man
return Mono.error(
new IllegalArgumentException("Parameter policySetDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.deleteAtManagementGroup(this.client.getEndpoint(), managementGroupId, policySetDefinitionName,
@@ -1429,7 +1429,7 @@ public Mono> getAtManagementGroupWithResponse
return Mono.error(
new IllegalArgumentException("Parameter policySetDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getAtManagementGroup(this.client.getEndpoint(), managementGroupId,
@@ -1467,7 +1467,7 @@ private Mono> getAtManagementGroupWithRespons
return Mono.error(
new IllegalArgumentException("Parameter policySetDefinitionName is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getAtManagementGroup(this.client.getEndpoint(), managementGroupId, policySetDefinitionName,
@@ -1575,7 +1575,7 @@ private Mono> listByManagementGroupSingl
return Mono
.error(new IllegalArgumentException("Parameter managementGroupId is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByManagementGroup(this.client.getEndpoint(), managementGroupId,
@@ -1626,7 +1626,7 @@ private Mono> listByManagementGroupSingl
return Mono
.error(new IllegalArgumentException("Parameter managementGroupId is required and cannot be null."));
}
- final String apiVersion = "2023-04-01";
+ final String apiVersion = "2025-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1802,6 +1802,8 @@ public PagedIterable listByManagementGroup(String mana
}
/**
+ * Retrieves the policy set definitions for a subscription.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -1827,6 +1829,8 @@ private Mono> listNextSinglePageAsync(St
}
/**
+ * Retrieves the policy set definitions for a subscription.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -1853,6 +1857,8 @@ private Mono> listNextSinglePageAsync(St
}
/**
+ * Retrieves built-in policy set definitions.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -1879,6 +1885,8 @@ private Mono