Skip to content

Commit

Permalink
CodeGen from PR 16204 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 7720293a8685587cb7f39f4807897ff7195a1ff2 into a9c7d15ec5a5f2348e4a62650821eaac04328750
  • Loading branch information
SDKAuto committed Oct 8, 2021
1 parent 91f178a commit 62b350d
Show file tree
Hide file tree
Showing 305 changed files with 26,576 additions and 8,046 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2021-10-08)

- Azure Resource Manager MySql client library for Java. This package contains Microsoft Azure SDK for MySql Management SDK. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model. Package tag package-2020-01-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager MySql client library for Java.

This package contains Microsoft Azure SDK for MySql Management SDK. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model. Package tag package-flexibleserver-2021-05-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for MySql Management SDK. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model. Package tag package-2020-01-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-mysqlflexibleserver</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down Expand Up @@ -74,7 +74,6 @@ See [API design][design] for general introduction on design and key concepts on

## Examples

[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/SAMPLE.md)


## Troubleshooting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for MySql Management</name>
<description>This package contains Microsoft Azure SDK for MySql Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model. Package tag package-flexibleserver-2021-05-01.</description>
<description>This package contains Microsoft Azure SDK for MySql Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model. Package tag package-2020-01-01.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,64 +9,64 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ServerBackupInner;
import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.AdvisorInner;

/** An instance of this class provides access to all the operations defined in BackupsClient. */
public interface BackupsClient {
/** An instance of this class provides access to all the operations defined in AdvisorsClient. */
public interface AdvisorsClient {
/**
* List all the backups for a given server.
* Get a recommendation action advisor.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param backupName The name of the backup.
* @param advisorName The advisor name for recommendation action.
* @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 server backup properties.
* @return a recommendation action advisor.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ServerBackupInner get(String resourceGroupName, String serverName, String backupName);
AdvisorInner get(String resourceGroupName, String serverName, String advisorName);

/**
* List all the backups for a given server.
* Get a recommendation action advisor.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param backupName The name of the backup.
* @param advisorName The advisor name for recommendation action.
* @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 server backup properties.
* @return a recommendation action advisor.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ServerBackupInner> getWithResponse(
String resourceGroupName, String serverName, String backupName, Context context);
Response<AdvisorInner> getWithResponse(
String resourceGroupName, String serverName, String advisorName, Context context);

/**
* List all the backups for a given server.
* List recommendation action advisors.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @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 a list of server backups.
* @return a list of query statistics.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ServerBackupInner> listByServer(String resourceGroupName, String serverName);
PagedIterable<AdvisorInner> listByServer(String resourceGroupName, String serverName);

/**
* List all the backups for a given server.
* List recommendation action advisors.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @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 a list of server backups.
* @return a list of query statistics.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ServerBackupInner> listByServer(String resourceGroupName, String serverName, Context context);
PagedIterable<AdvisorInner> listByServer(String resourceGroupName, String serverName, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,21 @@
/** An instance of this class provides access to all the operations defined in CheckNameAvailabilitiesClient. */
public interface CheckNameAvailabilitiesClient {
/**
* Check the availability of name for server.
* Check the availability of name for resource.
*
* @param locationName The name of the location.
* @param nameAvailabilityRequest The required parameters for checking if server name is available.
* @param nameAvailabilityRequest The required parameters for checking if resource name is available.
* @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 represents a resource name availability.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NameAvailabilityInner execute(String locationName, NameAvailabilityRequest nameAvailabilityRequest);
NameAvailabilityInner execute(NameAvailabilityRequest nameAvailabilityRequest);

/**
* Check the availability of name for server.
* Check the availability of name for resource.
*
* @param locationName The name of the location.
* @param nameAvailabilityRequest The required parameters for checking if server name is available.
* @param nameAvailabilityRequest The required parameters for checking if resource name is available.
* @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.
Expand All @@ -39,5 +37,5 @@ public interface CheckNameAvailabilitiesClient {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<NameAvailabilityInner> executeWithResponse(
String locationName, NameAvailabilityRequest nameAvailabilityRequest, Context context);
NameAvailabilityRequest nameAvailabilityRequest, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ConfigurationInner;
import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ConfigurationListResultInner;
import com.azure.resourcemanager.mysqlflexibleserver.models.ConfigurationListForBatchUpdate;

/** An instance of this class provides access to all the operations defined in ConfigurationsClient. */
public interface ConfigurationsClient {
Expand All @@ -30,7 +28,7 @@ public interface ConfigurationsClient {
* @return represents a Configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<ConfigurationInner>, ConfigurationInner> beginUpdate(
SyncPoller<PollResult<ConfigurationInner>, ConfigurationInner> beginCreateOrUpdate(
String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters);

/**
Expand All @@ -47,7 +45,7 @@ SyncPoller<PollResult<ConfigurationInner>, ConfigurationInner> beginUpdate(
* @return represents a Configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<ConfigurationInner>, ConfigurationInner> beginUpdate(
SyncPoller<PollResult<ConfigurationInner>, ConfigurationInner> beginCreateOrUpdate(
String resourceGroupName,
String serverName,
String configurationName,
Expand All @@ -67,7 +65,7 @@ SyncPoller<PollResult<ConfigurationInner>, ConfigurationInner> beginUpdate(
* @return represents a Configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ConfigurationInner update(
ConfigurationInner createOrUpdate(
String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters);

/**
Expand All @@ -84,7 +82,7 @@ ConfigurationInner update(
* @return represents a Configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ConfigurationInner update(
ConfigurationInner createOrUpdate(
String resourceGroupName,
String serverName,
String configurationName,
Expand Down Expand Up @@ -121,68 +119,6 @@ ConfigurationInner update(
Response<ConfigurationInner> getWithResponse(
String resourceGroupName, String serverName, String configurationName, Context context);

/**
* Update a list of configurations in a given server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param parameters The parameters for updating a list of server configuration.
* @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 a list of server configurations.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<ConfigurationListResultInner>, ConfigurationListResultInner> beginBatchUpdate(
String resourceGroupName, String serverName, ConfigurationListForBatchUpdate parameters);

/**
* Update a list of configurations in a given server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param parameters The parameters for updating a list of server configuration.
* @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 a list of server configurations.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<ConfigurationListResultInner>, ConfigurationListResultInner> beginBatchUpdate(
String resourceGroupName, String serverName, ConfigurationListForBatchUpdate parameters, Context context);

/**
* Update a list of configurations in a given server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param parameters The parameters for updating a list of server configuration.
* @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 a list of server configurations.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ConfigurationListResultInner batchUpdate(
String resourceGroupName, String serverName, ConfigurationListForBatchUpdate parameters);

/**
* Update a list of configurations in a given server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param parameters The parameters for updating a list of server configuration.
* @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 a list of server configurations.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ConfigurationListResultInner batchUpdate(
String resourceGroupName, String serverName, ConfigurationListForBatchUpdate parameters, Context context);

/**
* List all the configurations in a given server.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ FirewallRuleInner createOrUpdate(
Context context);

/**
* Deletes a firewall rule.
* Deletes a server firewall rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
Expand All @@ -105,7 +105,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String serverName, String firewallRuleName);

/**
* Deletes a firewall rule.
* Deletes a server firewall rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
Expand All @@ -121,7 +121,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String serverName, String firewallRuleName, Context context);

/**
* Deletes a firewall rule.
* Deletes a server firewall rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
Expand All @@ -134,7 +134,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
void delete(String resourceGroupName, String serverName, String firewallRuleName);

/**
* Deletes a firewall rule.
* Deletes a server firewall rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
Expand Down
Loading

0 comments on commit 62b350d

Please sign in to comment.