Skip to content

Commit 6ae598d

Browse files
author
SDKAuto
committed
CodeGen from PR 23623 in Azure/azure-rest-api-specs
Merge 529636b8b63bbfbebb97f2d3be633e7b464e80b9 into 7a65f22cf67826187f75981e914c7e679039257b
1 parent 6f0f47c commit 6ae598d

File tree

173 files changed

+3849
-4262
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+3849
-4262
lines changed

sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.4 (Unreleased)
3+
## 1.0.0-beta.1 (2023-04-23)
4+
5+
- 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).
46

57
### Features Added
68

sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager MySql client library for Java.
44

5-
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-12-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
5+
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).
66

77
## We'd love to hear your feedback
88

@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-mysqlflexibleserver</artifactId>
35-
<version>1.0.0-beta.3</version>
35+
<version>1.0.0-beta.4</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/SAMPLE.md

Lines changed: 165 additions & 52 deletions
Large diffs are not rendered by default.

sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for MySql Management</name>
21-
<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-12-01-preview.</description>
21+
<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>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>

sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/MySqlManager.java

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import com.azure.core.util.logging.ClientLogger;
2626
import com.azure.resourcemanager.mysqlflexibleserver.fluent.MySqlManagementClient;
2727
import com.azure.resourcemanager.mysqlflexibleserver.implementation.AzureADAdministratorsImpl;
28+
import com.azure.resourcemanager.mysqlflexibleserver.implementation.BackupAndExportsImpl;
2829
import com.azure.resourcemanager.mysqlflexibleserver.implementation.BackupsImpl;
2930
import com.azure.resourcemanager.mysqlflexibleserver.implementation.CheckNameAvailabilitiesImpl;
3031
import com.azure.resourcemanager.mysqlflexibleserver.implementation.CheckNameAvailabilityWithoutLocationsImpl;
@@ -40,6 +41,7 @@
4041
import com.azure.resourcemanager.mysqlflexibleserver.implementation.ReplicasImpl;
4142
import com.azure.resourcemanager.mysqlflexibleserver.implementation.ServersImpl;
4243
import com.azure.resourcemanager.mysqlflexibleserver.models.AzureADAdministrators;
44+
import com.azure.resourcemanager.mysqlflexibleserver.models.BackupAndExports;
4345
import com.azure.resourcemanager.mysqlflexibleserver.models.Backups;
4446
import com.azure.resourcemanager.mysqlflexibleserver.models.CheckNameAvailabilities;
4547
import com.azure.resourcemanager.mysqlflexibleserver.models.CheckNameAvailabilityWithoutLocations;
@@ -66,8 +68,12 @@
6668
* configurations with new business model.
6769
*/
6870
public final class MySqlManager {
71+
private AzureADAdministrators azureADAdministrators;
72+
6973
private Backups backups;
7074

75+
private BackupAndExports backupAndExports;
76+
7177
private Configurations configurations;
7278

7379
private Databases databases;
@@ -92,8 +98,6 @@ public final class MySqlManager {
9298

9399
private Operations operations;
94100

95-
private AzureADAdministrators azureADAdministrators;
96-
97101
private final MySqlManagementClient clientObject;
98102

99103
private MySqlManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -259,7 +263,7 @@ public MySqlManager authenticate(TokenCredential credential, AzureProfile profil
259263
.append("-")
260264
.append("com.azure.resourcemanager.mysqlflexibleserver")
261265
.append("/")
262-
.append("1.0.0-beta.3");
266+
.append("1.0.0-beta.1");
263267
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
264268
userAgentBuilder
265269
.append(" (")
@@ -316,6 +320,18 @@ public MySqlManager authenticate(TokenCredential credential, AzureProfile profil
316320
}
317321
}
318322

323+
/**
324+
* Gets the resource collection API of AzureADAdministrators. It manages AzureADAdministrator.
325+
*
326+
* @return Resource collection API of AzureADAdministrators.
327+
*/
328+
public AzureADAdministrators azureADAdministrators() {
329+
if (this.azureADAdministrators == null) {
330+
this.azureADAdministrators = new AzureADAdministratorsImpl(clientObject.getAzureADAdministrators(), this);
331+
}
332+
return azureADAdministrators;
333+
}
334+
319335
/**
320336
* Gets the resource collection API of Backups.
321337
*
@@ -329,7 +345,19 @@ public Backups backups() {
329345
}
330346

331347
/**
332-
* Gets the resource collection API of Configurations.
348+
* Gets the resource collection API of BackupAndExports.
349+
*
350+
* @return Resource collection API of BackupAndExports.
351+
*/
352+
public BackupAndExports backupAndExports() {
353+
if (this.backupAndExports == null) {
354+
this.backupAndExports = new BackupAndExportsImpl(clientObject.getBackupAndExports(), this);
355+
}
356+
return backupAndExports;
357+
}
358+
359+
/**
360+
* Gets the resource collection API of Configurations. It manages Configuration.
333361
*
334362
* @return Resource collection API of Configurations.
335363
*/
@@ -478,18 +506,6 @@ public Operations operations() {
478506
return operations;
479507
}
480508

481-
/**
482-
* Gets the resource collection API of AzureADAdministrators. It manages AzureADAdministrator.
483-
*
484-
* @return Resource collection API of AzureADAdministrators.
485-
*/
486-
public AzureADAdministrators azureADAdministrators() {
487-
if (this.azureADAdministrators == null) {
488-
this.azureADAdministrators = new AzureADAdministratorsImpl(clientObject.getAzureADAdministrators(), this);
489-
}
490-
return azureADAdministrators;
491-
}
492-
493509
/**
494510
* @return Wrapped service client MySqlManagementClient providing direct access to the underlying auto-generated API
495511
* implementation, based on Azure REST API.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.mysqlflexibleserver.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.Response;
10+
import com.azure.core.management.polling.PollResult;
11+
import com.azure.core.util.Context;
12+
import com.azure.core.util.polling.SyncPoller;
13+
import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.BackupAndExportResponseInner;
14+
import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ValidateBackupResponseInner;
15+
import com.azure.resourcemanager.mysqlflexibleserver.models.BackupAndExportRequest;
16+
17+
/** An instance of this class provides access to all the operations defined in BackupAndExportsClient. */
18+
public interface BackupAndExportsClient {
19+
/**
20+
* Exports the backup of the given server by creating a backup if not existing.
21+
*
22+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
23+
* @param serverName The name of the server.
24+
* @param parameters The required parameters for creating and exporting backup of the given server.
25+
* @throws IllegalArgumentException thrown if parameters fail the validation.
26+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
27+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
28+
* @return the {@link SyncPoller} for polling of represents BackupAndExport API Response.
29+
*/
30+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
31+
SyncPoller<PollResult<BackupAndExportResponseInner>, BackupAndExportResponseInner> beginCreate(
32+
String resourceGroupName, String serverName, BackupAndExportRequest parameters);
33+
34+
/**
35+
* Exports the backup of the given server by creating a backup if not existing.
36+
*
37+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
38+
* @param serverName The name of the server.
39+
* @param parameters The required parameters for creating and exporting backup of the given server.
40+
* @param context The context to associate with this operation.
41+
* @throws IllegalArgumentException thrown if parameters fail the validation.
42+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
43+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
44+
* @return the {@link SyncPoller} for polling of represents BackupAndExport API Response.
45+
*/
46+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
47+
SyncPoller<PollResult<BackupAndExportResponseInner>, BackupAndExportResponseInner> beginCreate(
48+
String resourceGroupName, String serverName, BackupAndExportRequest parameters, Context context);
49+
50+
/**
51+
* Exports the backup of the given server by creating a backup if not existing.
52+
*
53+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
54+
* @param serverName The name of the server.
55+
* @param parameters The required parameters for creating and exporting backup of the given server.
56+
* @throws IllegalArgumentException thrown if parameters fail the validation.
57+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
58+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
59+
* @return represents BackupAndExport API Response.
60+
*/
61+
@ServiceMethod(returns = ReturnType.SINGLE)
62+
BackupAndExportResponseInner create(String resourceGroupName, String serverName, BackupAndExportRequest parameters);
63+
64+
/**
65+
* Exports the backup of the given server by creating a backup if not existing.
66+
*
67+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
68+
* @param serverName The name of the server.
69+
* @param parameters The required parameters for creating and exporting backup of the given server.
70+
* @param context The context to associate with this operation.
71+
* @throws IllegalArgumentException thrown if parameters fail the validation.
72+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
73+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
74+
* @return represents BackupAndExport API Response.
75+
*/
76+
@ServiceMethod(returns = ReturnType.SINGLE)
77+
BackupAndExportResponseInner create(
78+
String resourceGroupName, String serverName, BackupAndExportRequest parameters, Context context);
79+
80+
/**
81+
* Validates if backup can be performed for given server.
82+
*
83+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
84+
* @param serverName The name of the server.
85+
* @param context The context to associate with this operation.
86+
* @throws IllegalArgumentException thrown if parameters fail the validation.
87+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
88+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
89+
* @return represents ValidateBackup API Response along with {@link Response}.
90+
*/
91+
@ServiceMethod(returns = ReturnType.SINGLE)
92+
Response<ValidateBackupResponseInner> validateBackupWithResponse(
93+
String resourceGroupName, String serverName, Context context);
94+
95+
/**
96+
* Validates if backup can be performed for given server.
97+
*
98+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
99+
* @param serverName The name of the server.
100+
* @throws IllegalArgumentException thrown if parameters fail the validation.
101+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
102+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
103+
* @return represents ValidateBackup API Response.
104+
*/
105+
@ServiceMethod(returns = ReturnType.SINGLE)
106+
ValidateBackupResponseInner validateBackup(String resourceGroupName, String serverName);
107+
}

sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ConfigurationsClient.java

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,80 @@
1717

1818
/** An instance of this class provides access to all the operations defined in ConfigurationsClient. */
1919
public interface ConfigurationsClient {
20+
/**
21+
* Updates a configuration of a server.
22+
*
23+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
24+
* @param serverName The name of the server.
25+
* @param configurationName The name of the server configuration.
26+
* @param parameters The required parameters for updating a server configuration.
27+
* @throws IllegalArgumentException thrown if parameters fail the validation.
28+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
29+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
30+
* @return the {@link SyncPoller} for polling of represents a Configuration.
31+
*/
32+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
33+
SyncPoller<PollResult<ConfigurationInner>, ConfigurationInner> beginCreateOrUpdate(
34+
String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters);
35+
36+
/**
37+
* Updates a configuration of a server.
38+
*
39+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
40+
* @param serverName The name of the server.
41+
* @param configurationName The name of the server configuration.
42+
* @param parameters The required parameters for updating a server configuration.
43+
* @param context The context to associate with this operation.
44+
* @throws IllegalArgumentException thrown if parameters fail the validation.
45+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
46+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
47+
* @return the {@link SyncPoller} for polling of represents a Configuration.
48+
*/
49+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
50+
SyncPoller<PollResult<ConfigurationInner>, ConfigurationInner> beginCreateOrUpdate(
51+
String resourceGroupName,
52+
String serverName,
53+
String configurationName,
54+
ConfigurationInner parameters,
55+
Context context);
56+
57+
/**
58+
* Updates a configuration of a server.
59+
*
60+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
61+
* @param serverName The name of the server.
62+
* @param configurationName The name of the server configuration.
63+
* @param parameters The required parameters for updating a server configuration.
64+
* @throws IllegalArgumentException thrown if parameters fail the validation.
65+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
66+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
67+
* @return represents a Configuration.
68+
*/
69+
@ServiceMethod(returns = ReturnType.SINGLE)
70+
ConfigurationInner createOrUpdate(
71+
String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters);
72+
73+
/**
74+
* Updates a configuration of a server.
75+
*
76+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
77+
* @param serverName The name of the server.
78+
* @param configurationName The name of the server configuration.
79+
* @param parameters The required parameters for updating a server configuration.
80+
* @param context The context to associate with this operation.
81+
* @throws IllegalArgumentException thrown if parameters fail the validation.
82+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
83+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
84+
* @return represents a Configuration.
85+
*/
86+
@ServiceMethod(returns = ReturnType.SINGLE)
87+
ConfigurationInner createOrUpdate(
88+
String resourceGroupName,
89+
String serverName,
90+
String configurationName,
91+
ConfigurationInner parameters,
92+
Context context);
93+
2094
/**
2195
* Updates a configuration of a server.
2296
*

sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/MySqlManagementClient.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ public interface MySqlManagementClient {
2323
*/
2424
String getEndpoint();
2525

26-
/**
27-
* Gets Api Version.
28-
*
29-
* @return the apiVersion value.
30-
*/
31-
String getApiVersion();
32-
3326
/**
3427
* Gets The HTTP pipeline to send requests through.
3528
*
@@ -44,13 +37,27 @@ public interface MySqlManagementClient {
4437
*/
4538
Duration getDefaultPollInterval();
4639

40+
/**
41+
* Gets the AzureADAdministratorsClient object to access its operations.
42+
*
43+
* @return the AzureADAdministratorsClient object.
44+
*/
45+
AzureADAdministratorsClient getAzureADAdministrators();
46+
4747
/**
4848
* Gets the BackupsClient object to access its operations.
4949
*
5050
* @return the BackupsClient object.
5151
*/
5252
BackupsClient getBackups();
5353

54+
/**
55+
* Gets the BackupAndExportsClient object to access its operations.
56+
*
57+
* @return the BackupAndExportsClient object.
58+
*/
59+
BackupAndExportsClient getBackupAndExports();
60+
5461
/**
5562
* Gets the ConfigurationsClient object to access its operations.
5663
*
@@ -134,11 +141,4 @@ public interface MySqlManagementClient {
134141
* @return the OperationsClient object.
135142
*/
136143
OperationsClient getOperations();
137-
138-
/**
139-
* Gets the AzureADAdministratorsClient object to access its operations.
140-
*
141-
* @return the AzureADAdministratorsClient object.
142-
*/
143-
AzureADAdministratorsClient getAzureADAdministrators();
144144
}

0 commit comments

Comments
 (0)