Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azure-json, migrate azure-resourcemanager-sql #41476

Merged
merged 6 commits into from
Aug 9, 2024
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 28 additions & 0 deletions eng/code-quality-reports/src/main/resources/revapi/revapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,34 @@
"new": "parameter com.azure.resourcemanager.appservice.models.FunctionsScaleAndConcurrencyTriggersHttp com.azure.resourcemanager.appservice.models.FunctionsScaleAndConcurrencyTriggersHttp::withPerInstanceConcurrency(===java.lang.Integer===)",
"parameterIndex": "0",
"justification": "Service bug fix."
},
{
"ignore": true,
"code": "java.class.nowFinal",
"old": "class com.azure.resourcemanager.sql.models.DatabaseIdentity",
"new": "class com.azure.resourcemanager.sql.models.DatabaseIdentity",
"justification": "Customer unlikely to subclass this class."
},
{
"ignore": true,
"code": "java.class.nowFinal",
"old": "class com.azure.resourcemanager.sql.models.DatabaseUserIdentity",
"new": "class com.azure.resourcemanager.sql.models.DatabaseUserIdentity",
"justification": "Customer unlikely to subclass this class."
},
{
"ignore": true,
"code": "java.class.nowFinal",
"old": "class com.azure.resourcemanager.sql.models.ResourceIdentity",
"new": "class com.azure.resourcemanager.sql.models.ResourceIdentity",
"justification": "Customer unlikely to subclass this class."
},
{
"ignore": true,
"code": "java.class.nowFinal",
"old": "class com.azure.resourcemanager.sql.models.UserIdentity",
"new": "class com.azure.resourcemanager.sql.models.UserIdentity",
"justification": "Customer unlikely to subclass this class."
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/resourcemanager/api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
"dir": "azure-resourcemanager-sql",
"source": "specification/sql/resource-manager/readme.md",
"package": "com.azure.resourcemanager.sql",
"args": "--tag=package-2021-11 --modelerfour.lenient-model-deduplication=true --rename-model=SecurityAlertsPolicyState:SecurityAlertPolicyState --stream-style-serialization=false",
"args": "--tag=package-2021-11 --modelerfour.lenient-model-deduplication=true --rename-model=SecurityAlertsPolicyState:SecurityAlertPolicyState",
"note": "Add '\"x-ms-long-running-operation\": true' to TransparentDataEncryptions_CreateOrUpdate in specs file TransparentDataEncryptions.json"
},
"storage": {
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,41 @@
import com.azure.resourcemanager.sql.models.CapabilityGroup;
import reactor.core.publisher.Mono;

/** An instance of this class provides access to all the operations defined in CapabilitiesClient. */
/**
* An instance of this class provides access to all the operations defined in CapabilitiesClient.
*/
public interface CapabilitiesClient {
/**
* Gets the subscription capabilities available for the specified location.
*
*
* @param locationName The location name whose capabilities are retrieved.
* @param include If specified, restricts the response to only include the selected item.
* @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 subscription capabilities available for the specified location along with {@link Response} on
* successful completion of {@link Mono}.
* successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<LocationCapabilitiesInner>> listByLocationWithResponseAsync(
String locationName, CapabilityGroup include);
Mono<Response<LocationCapabilitiesInner>> listByLocationWithResponseAsync(String locationName,
CapabilityGroup include);

/**
* Gets the subscription capabilities available for the specified location.
*
*
* @param locationName The location name whose capabilities are retrieved.
* @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 subscription capabilities available for the specified location on successful completion of {@link
* Mono}.
* @return the subscription capabilities available for the specified location on successful completion of
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<LocationCapabilitiesInner> listByLocationAsync(String locationName);

/**
* Gets the subscription capabilities available for the specified location.
*
*
* @param locationName The location name whose capabilities are retrieved.
* @param include If specified, restricts the response to only include the selected item.
* @param context The context to associate with this operation.
Expand All @@ -54,12 +56,12 @@ Mono<Response<LocationCapabilitiesInner>> listByLocationWithResponseAsync(
* @return the subscription capabilities available for the specified location along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<LocationCapabilitiesInner> listByLocationWithResponse(
String locationName, CapabilityGroup include, Context context);
Response<LocationCapabilitiesInner> listByLocationWithResponse(String locationName, CapabilityGroup include,
Context context);

/**
* Gets the subscription capabilities available for the specified location.
*
*
* @param locationName The location name whose capabilities are retrieved.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
import com.azure.resourcemanager.sql.models.DataMaskingPolicyName;
import reactor.core.publisher.Mono;

/** An instance of this class provides access to all the operations defined in DataMaskingPoliciesClient. */
/**
* An instance of this class provides access to all the operations defined in DataMaskingPoliciesClient.
*/
public interface DataMaskingPoliciesClient {
/**
* Gets the database data masking policy.
*
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* from the Azure Resource Manager API or the portal.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @param dataMaskingPolicyName The name of the database for which the data masking policy applies.
Expand All @@ -28,14 +30,14 @@ public interface DataMaskingPoliciesClient {
* @return the database data masking policy along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<DataMaskingPolicyInner>> getWithResponseAsync(
String resourceGroupName, String serverName, String databaseName, DataMaskingPolicyName dataMaskingPolicyName);
Mono<Response<DataMaskingPolicyInner>> getWithResponseAsync(String resourceGroupName, String serverName,
String databaseName, DataMaskingPolicyName dataMaskingPolicyName);

/**
* Gets the database data masking policy.
*
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* from the Azure Resource Manager API or the portal.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @param dataMaskingPolicyName The name of the database for which the data masking policy applies.
Expand All @@ -45,14 +47,14 @@ Mono<Response<DataMaskingPolicyInner>> getWithResponseAsync(
* @return the database data masking policy on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<DataMaskingPolicyInner> getAsync(
String resourceGroupName, String serverName, String databaseName, DataMaskingPolicyName dataMaskingPolicyName);
Mono<DataMaskingPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName,
DataMaskingPolicyName dataMaskingPolicyName);

/**
* Gets the database data masking policy.
*
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* from the Azure Resource Manager API or the portal.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @param dataMaskingPolicyName The name of the database for which the data masking policy applies.
Expand All @@ -63,18 +65,14 @@ Mono<DataMaskingPolicyInner> getAsync(
* @return the database data masking policy along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<DataMaskingPolicyInner> getWithResponse(
String resourceGroupName,
String serverName,
String databaseName,
DataMaskingPolicyName dataMaskingPolicyName,
Context context);
Response<DataMaskingPolicyInner> getWithResponse(String resourceGroupName, String serverName, String databaseName,
DataMaskingPolicyName dataMaskingPolicyName, Context context);

/**
* Gets the database data masking policy.
*
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* from the Azure Resource Manager API or the portal.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @param dataMaskingPolicyName The name of the database for which the data masking policy applies.
Expand All @@ -84,14 +82,14 @@ Response<DataMaskingPolicyInner> getWithResponse(
* @return the database data masking policy.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DataMaskingPolicyInner get(
String resourceGroupName, String serverName, String databaseName, DataMaskingPolicyName dataMaskingPolicyName);
DataMaskingPolicyInner get(String resourceGroupName, String serverName, String databaseName,
DataMaskingPolicyName dataMaskingPolicyName);

/**
* Creates or updates a database data masking policy.
*
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* from the Azure Resource Manager API or the portal.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @param dataMaskingPolicyName The name of the database for which the data masking policy applies.
Expand All @@ -102,18 +100,14 @@ DataMaskingPolicyInner get(
* @return a database data masking policy along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<DataMaskingPolicyInner>> createOrUpdateWithResponseAsync(
String resourceGroupName,
String serverName,
String databaseName,
DataMaskingPolicyName dataMaskingPolicyName,
DataMaskingPolicyInner parameters);
Mono<Response<DataMaskingPolicyInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName,
String databaseName, DataMaskingPolicyName dataMaskingPolicyName, DataMaskingPolicyInner parameters);

/**
* Creates or updates a database data masking policy.
*
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* from the Azure Resource Manager API or the portal.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @param dataMaskingPolicyName The name of the database for which the data masking policy applies.
Expand All @@ -124,18 +118,14 @@ Mono<Response<DataMaskingPolicyInner>> createOrUpdateWithResponseAsync(
* @return a database data masking policy on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<DataMaskingPolicyInner> createOrUpdateAsync(
String resourceGroupName,
String serverName,
String databaseName,
DataMaskingPolicyName dataMaskingPolicyName,
DataMaskingPolicyInner parameters);
Mono<DataMaskingPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName,
DataMaskingPolicyName dataMaskingPolicyName, DataMaskingPolicyInner parameters);

/**
* Creates or updates a database data masking policy.
*
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* from the Azure Resource Manager API or the portal.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @param dataMaskingPolicyName The name of the database for which the data masking policy applies.
Expand All @@ -147,19 +137,15 @@ Mono<DataMaskingPolicyInner> createOrUpdateAsync(
* @return a database data masking policy along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<DataMaskingPolicyInner> createOrUpdateWithResponse(
String resourceGroupName,
String serverName,
String databaseName,
DataMaskingPolicyName dataMaskingPolicyName,
DataMaskingPolicyInner parameters,
Response<DataMaskingPolicyInner> createOrUpdateWithResponse(String resourceGroupName, String serverName,
String databaseName, DataMaskingPolicyName dataMaskingPolicyName, DataMaskingPolicyInner parameters,
Context context);

/**
* Creates or updates a database data masking policy.
*
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* from the Azure Resource Manager API or the portal.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @param dataMaskingPolicyName The name of the database for which the data masking policy applies.
Expand All @@ -170,10 +156,6 @@ Response<DataMaskingPolicyInner> createOrUpdateWithResponse(
* @return a database data masking policy.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DataMaskingPolicyInner createOrUpdate(
String resourceGroupName,
String serverName,
String databaseName,
DataMaskingPolicyName dataMaskingPolicyName,
DataMaskingPolicyInner parameters);
DataMaskingPolicyInner createOrUpdate(String resourceGroupName, String serverName, String databaseName,
DataMaskingPolicyName dataMaskingPolicyName, DataMaskingPolicyInner parameters);
}
Loading
Loading