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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.5 (Unreleased)
## 1.0.0-beta.1 (2023-10-31)

- 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-2023-10-01-preview. 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-2022-09-30-preview. 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-flexibleserver-2023-10-01-preview. 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.4</version>
<version>1.0.0-beta.5</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand All @@ -45,7 +45,7 @@ Azure Management Libraries require a `TokenCredential` implementation for authen

### Authentication

By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.
By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
Expand Down Expand Up @@ -74,6 +74,15 @@ See [API design][design] for general introduction on design and key concepts on

## Examples

```java
server = mysqlManager.servers()
.define(serverName)
.withRegion(REGION)
.withExistingResourceGroup(resourceGroupName)
.withAdministratorLogin(adminName)
.withAdministratorLoginPassword(adminPwd)
.create();
```
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/SAMPLE.md)


Expand All @@ -94,7 +103,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
<!-- LINKS -->
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
[docs]: https://azure.github.io/azure-sdk-for-java/
[jdk]: https://docs.microsoft.com/java/azure/jdk/
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
Expand All @@ -103,3 +112,5 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fmysqlflexibleserver%2Fazure-resourcemanager-mysqlflexibleserver%2FREADME.png)

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,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-2022-09-30-preview.</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-flexibleserver-2023-10-01-preview.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -45,6 +45,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mysqlflexibleserver.fluent.MySqlManagementClient;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.AdvancedThreatProtectionSettingsImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.AzureADAdministratorsImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.BackupAndExportsImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.BackupsImpl;
Expand All @@ -35,11 +36,15 @@
import com.azure.resourcemanager.mysqlflexibleserver.implementation.FirewallRulesImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.GetPrivateDnsZoneSuffixesImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.LocationBasedCapabilitiesImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.LocationBasedCapabilitySetsImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.LogFilesImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.MySqlManagementClientBuilder;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.OperationResultsImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.OperationsImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.ReplicasImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.ServersImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.ServersMigrationsImpl;
import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionSettings;
import com.azure.resourcemanager.mysqlflexibleserver.models.AzureADAdministrators;
import com.azure.resourcemanager.mysqlflexibleserver.models.BackupAndExports;
import com.azure.resourcemanager.mysqlflexibleserver.models.Backups;
Expand All @@ -51,10 +56,13 @@
import com.azure.resourcemanager.mysqlflexibleserver.models.FirewallRules;
import com.azure.resourcemanager.mysqlflexibleserver.models.GetPrivateDnsZoneSuffixes;
import com.azure.resourcemanager.mysqlflexibleserver.models.LocationBasedCapabilities;
import com.azure.resourcemanager.mysqlflexibleserver.models.LocationBasedCapabilitySets;
import com.azure.resourcemanager.mysqlflexibleserver.models.LogFiles;
import com.azure.resourcemanager.mysqlflexibleserver.models.OperationResults;
import com.azure.resourcemanager.mysqlflexibleserver.models.Operations;
import com.azure.resourcemanager.mysqlflexibleserver.models.Replicas;
import com.azure.resourcemanager.mysqlflexibleserver.models.Servers;
import com.azure.resourcemanager.mysqlflexibleserver.models.ServersMigrations;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
Expand Down Expand Up @@ -84,20 +92,28 @@ public final class MySqlManager {

private Replicas replicas;

private ServersMigrations serversMigrations;

private LogFiles logFiles;

private LocationBasedCapabilities locationBasedCapabilities;

private LocationBasedCapabilitySets locationBasedCapabilitySets;

private CheckVirtualNetworkSubnetUsages checkVirtualNetworkSubnetUsages;

private CheckNameAvailabilities checkNameAvailabilities;

private CheckNameAvailabilityWithoutLocations checkNameAvailabilityWithoutLocations;

private OperationResults operationResults;

private GetPrivateDnsZoneSuffixes getPrivateDnsZoneSuffixes;

private Operations operations;

private AdvancedThreatProtectionSettings advancedThreatProtectionSettings;

private final MySqlManagementClient clientObject;

private MySqlManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -263,7 +279,7 @@ public MySqlManager authenticate(TokenCredential credential, AzureProfile profil
.append("-")
.append("com.azure.resourcemanager.mysqlflexibleserver")
.append("/")
.append("1.0.0-beta.4");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -416,6 +432,18 @@ public Replicas replicas() {
return replicas;
}

/**
* Gets the resource collection API of ServersMigrations.
*
* @return Resource collection API of ServersMigrations.
*/
public ServersMigrations serversMigrations() {
if (this.serversMigrations == null) {
this.serversMigrations = new ServersMigrationsImpl(clientObject.getServersMigrations(), this);
}
return serversMigrations;
}

/**
* Gets the resource collection API of LogFiles.
*
Expand All @@ -441,6 +469,19 @@ public LocationBasedCapabilities locationBasedCapabilities() {
return locationBasedCapabilities;
}

/**
* Gets the resource collection API of LocationBasedCapabilitySets.
*
* @return Resource collection API of LocationBasedCapabilitySets.
*/
public LocationBasedCapabilitySets locationBasedCapabilitySets() {
if (this.locationBasedCapabilitySets == null) {
this.locationBasedCapabilitySets =
new LocationBasedCapabilitySetsImpl(clientObject.getLocationBasedCapabilitySets(), this);
}
return locationBasedCapabilitySets;
}

/**
* Gets the resource collection API of CheckVirtualNetworkSubnetUsages.
*
Expand Down Expand Up @@ -481,6 +522,18 @@ public CheckNameAvailabilityWithoutLocations checkNameAvailabilityWithoutLocatio
return checkNameAvailabilityWithoutLocations;
}

/**
* Gets the resource collection API of OperationResults.
*
* @return Resource collection API of OperationResults.
*/
public OperationResults operationResults() {
if (this.operationResults == null) {
this.operationResults = new OperationResultsImpl(clientObject.getOperationResults(), this);
}
return operationResults;
}

/**
* Gets the resource collection API of GetPrivateDnsZoneSuffixes.
*
Expand All @@ -507,8 +560,23 @@ public Operations operations() {
}

/**
* @return Wrapped service client MySqlManagementClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
* Gets the resource collection API of AdvancedThreatProtectionSettings.
*
* @return Resource collection API of AdvancedThreatProtectionSettings.
*/
public AdvancedThreatProtectionSettings advancedThreatProtectionSettings() {
if (this.advancedThreatProtectionSettings == null) {
this.advancedThreatProtectionSettings =
new AdvancedThreatProtectionSettingsImpl(clientObject.getAdvancedThreatProtectionSettings(), this);
}
return advancedThreatProtectionSettings;
}

/**
* Gets wrapped service client MySqlManagementClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
*
* @return Wrapped service client MySqlManagementClient.
*/
public MySqlManagementClient serviceClient() {
return this.clientObject;
Expand Down
Loading