Skip to content

Commit d5552f5

Browse files
author
SDKAuto
committed
CodeGen from PR 26191 in Azure/azure-rest-api-specs
Merge 8e069352d3006fdab04af5527670aa9c49b4cff1 into 28c5aaa5810448fce57da7e47427259a0c8850bf
1 parent 24c11c3 commit d5552f5

File tree

217 files changed

+4770
-4849
lines changed

Some content is hidden

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

217 files changed

+4770
-4849
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.5 (Unreleased)
3+
## 1.0.0-beta.1 (2023-10-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-2023-06-30. 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: 15 additions & 4 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-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).
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-2023-06-30. 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.4</version>
35+
<version>1.0.0-beta.5</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})
@@ -45,7 +45,7 @@ Azure Management Libraries require a `TokenCredential` implementation for authen
4545

4646
### Authentication
4747

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

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

7575
## Examples
7676

77+
```java
78+
server = mysqlManager.servers()
79+
.define(serverName)
80+
.withRegion(REGION)
81+
.withExistingResourceGroup(resourceGroupName)
82+
.withAdministratorLogin(adminName)
83+
.withAdministratorLoginPassword(adminPwd)
84+
.create();
85+
```
7786
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/SAMPLE.md)
7887

7988

@@ -94,7 +103,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
94103
<!-- LINKS -->
95104
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
96105
[docs]: https://azure.github.io/azure-sdk-for-java/
97-
[jdk]: https://docs.microsoft.com/java/azure/jdk/
106+
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
98107
[azure_subscription]: https://azure.microsoft.com/free/
99108
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
100109
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
@@ -103,3 +112,5 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
103112
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
104113
[coc]: https://opensource.microsoft.com/codeofconduct/
105114
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
115+
116+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fmysqlflexibleserver%2Fazure-resourcemanager-mysqlflexibleserver%2FREADME.png)

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

Lines changed: 153 additions & 56 deletions
Large diffs are not rendered by default.

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

Lines changed: 2 additions & 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-2022-09-30-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-2023-06-30.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>
@@ -45,6 +45,7 @@
4545
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4646
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
4747
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
48+
<revapi.skip>true</revapi.skip>
4849
</properties>
4950
<dependencies>
5051
<dependency>

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

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,14 @@
3535
import com.azure.resourcemanager.mysqlflexibleserver.implementation.FirewallRulesImpl;
3636
import com.azure.resourcemanager.mysqlflexibleserver.implementation.GetPrivateDnsZoneSuffixesImpl;
3737
import com.azure.resourcemanager.mysqlflexibleserver.implementation.LocationBasedCapabilitiesImpl;
38+
import com.azure.resourcemanager.mysqlflexibleserver.implementation.LocationBasedCapabilitySetsImpl;
3839
import com.azure.resourcemanager.mysqlflexibleserver.implementation.LogFilesImpl;
3940
import com.azure.resourcemanager.mysqlflexibleserver.implementation.MySqlManagementClientBuilder;
41+
import com.azure.resourcemanager.mysqlflexibleserver.implementation.OperationResultsImpl;
4042
import com.azure.resourcemanager.mysqlflexibleserver.implementation.OperationsImpl;
4143
import com.azure.resourcemanager.mysqlflexibleserver.implementation.ReplicasImpl;
4244
import com.azure.resourcemanager.mysqlflexibleserver.implementation.ServersImpl;
45+
import com.azure.resourcemanager.mysqlflexibleserver.implementation.ServersMigrationsImpl;
4346
import com.azure.resourcemanager.mysqlflexibleserver.models.AzureADAdministrators;
4447
import com.azure.resourcemanager.mysqlflexibleserver.models.BackupAndExports;
4548
import com.azure.resourcemanager.mysqlflexibleserver.models.Backups;
@@ -51,10 +54,13 @@
5154
import com.azure.resourcemanager.mysqlflexibleserver.models.FirewallRules;
5255
import com.azure.resourcemanager.mysqlflexibleserver.models.GetPrivateDnsZoneSuffixes;
5356
import com.azure.resourcemanager.mysqlflexibleserver.models.LocationBasedCapabilities;
57+
import com.azure.resourcemanager.mysqlflexibleserver.models.LocationBasedCapabilitySets;
5458
import com.azure.resourcemanager.mysqlflexibleserver.models.LogFiles;
59+
import com.azure.resourcemanager.mysqlflexibleserver.models.OperationResults;
5560
import com.azure.resourcemanager.mysqlflexibleserver.models.Operations;
5661
import com.azure.resourcemanager.mysqlflexibleserver.models.Replicas;
5762
import com.azure.resourcemanager.mysqlflexibleserver.models.Servers;
63+
import com.azure.resourcemanager.mysqlflexibleserver.models.ServersMigrations;
5864
import java.time.Duration;
5965
import java.time.temporal.ChronoUnit;
6066
import java.util.ArrayList;
@@ -84,16 +90,22 @@ public final class MySqlManager {
8490

8591
private Replicas replicas;
8692

93+
private ServersMigrations serversMigrations;
94+
8795
private LogFiles logFiles;
8896

8997
private LocationBasedCapabilities locationBasedCapabilities;
9098

99+
private LocationBasedCapabilitySets locationBasedCapabilitySets;
100+
91101
private CheckVirtualNetworkSubnetUsages checkVirtualNetworkSubnetUsages;
92102

93103
private CheckNameAvailabilities checkNameAvailabilities;
94104

95105
private CheckNameAvailabilityWithoutLocations checkNameAvailabilityWithoutLocations;
96106

107+
private OperationResults operationResults;
108+
97109
private GetPrivateDnsZoneSuffixes getPrivateDnsZoneSuffixes;
98110

99111
private Operations operations;
@@ -263,7 +275,7 @@ public MySqlManager authenticate(TokenCredential credential, AzureProfile profil
263275
.append("-")
264276
.append("com.azure.resourcemanager.mysqlflexibleserver")
265277
.append("/")
266-
.append("1.0.0-beta.4");
278+
.append("1.0.0-beta.1");
267279
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
268280
userAgentBuilder
269281
.append(" (")
@@ -416,6 +428,18 @@ public Replicas replicas() {
416428
return replicas;
417429
}
418430

431+
/**
432+
* Gets the resource collection API of ServersMigrations.
433+
*
434+
* @return Resource collection API of ServersMigrations.
435+
*/
436+
public ServersMigrations serversMigrations() {
437+
if (this.serversMigrations == null) {
438+
this.serversMigrations = new ServersMigrationsImpl(clientObject.getServersMigrations(), this);
439+
}
440+
return serversMigrations;
441+
}
442+
419443
/**
420444
* Gets the resource collection API of LogFiles.
421445
*
@@ -441,6 +465,19 @@ public LocationBasedCapabilities locationBasedCapabilities() {
441465
return locationBasedCapabilities;
442466
}
443467

468+
/**
469+
* Gets the resource collection API of LocationBasedCapabilitySets.
470+
*
471+
* @return Resource collection API of LocationBasedCapabilitySets.
472+
*/
473+
public LocationBasedCapabilitySets locationBasedCapabilitySets() {
474+
if (this.locationBasedCapabilitySets == null) {
475+
this.locationBasedCapabilitySets =
476+
new LocationBasedCapabilitySetsImpl(clientObject.getLocationBasedCapabilitySets(), this);
477+
}
478+
return locationBasedCapabilitySets;
479+
}
480+
444481
/**
445482
* Gets the resource collection API of CheckVirtualNetworkSubnetUsages.
446483
*
@@ -481,6 +518,18 @@ public CheckNameAvailabilityWithoutLocations checkNameAvailabilityWithoutLocatio
481518
return checkNameAvailabilityWithoutLocations;
482519
}
483520

521+
/**
522+
* Gets the resource collection API of OperationResults.
523+
*
524+
* @return Resource collection API of OperationResults.
525+
*/
526+
public OperationResults operationResults() {
527+
if (this.operationResults == null) {
528+
this.operationResults = new OperationResultsImpl(clientObject.getOperationResults(), this);
529+
}
530+
return operationResults;
531+
}
532+
484533
/**
485534
* Gets the resource collection API of GetPrivateDnsZoneSuffixes.
486535
*
@@ -507,8 +556,10 @@ public Operations operations() {
507556
}
508557

509558
/**
510-
* @return Wrapped service client MySqlManagementClient providing direct access to the underlying auto-generated API
511-
* implementation, based on Azure REST API.
559+
* Gets wrapped service client MySqlManagementClient providing direct access to the underlying auto-generated API
560+
* implementation, based on Azure REST API.
561+
*
562+
* @return Wrapped service client MySqlManagementClient.
512563
*/
513564
public MySqlManagementClient serviceClient() {
514565
return this.clientObject;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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.PagedIterable;
10+
import com.azure.core.http.rest.Response;
11+
import com.azure.core.util.Context;
12+
import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.CapabilityInner;
13+
14+
/** An instance of this class provides access to all the operations defined in LocationBasedCapabilitySetsClient. */
15+
public interface LocationBasedCapabilitySetsClient {
16+
/**
17+
* Get capabilities at specified location in a given subscription.
18+
*
19+
* @param locationName The name of the location.
20+
* @throws IllegalArgumentException thrown if parameters fail the validation.
21+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
22+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
23+
* @return capabilities at specified location in a given subscription as paginated response with {@link
24+
* PagedIterable}.
25+
*/
26+
@ServiceMethod(returns = ReturnType.COLLECTION)
27+
PagedIterable<CapabilityInner> list(String locationName);
28+
29+
/**
30+
* Get capabilities at specified location in a given subscription.
31+
*
32+
* @param locationName The name of the location.
33+
* @param context The context to associate with this operation.
34+
* @throws IllegalArgumentException thrown if parameters fail the validation.
35+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
36+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
37+
* @return capabilities at specified location in a given subscription as paginated response with {@link
38+
* PagedIterable}.
39+
*/
40+
@ServiceMethod(returns = ReturnType.COLLECTION)
41+
PagedIterable<CapabilityInner> list(String locationName, Context context);
42+
43+
/**
44+
* Get capabilities at specified location in a given subscription.
45+
*
46+
* @param locationName The name of the location.
47+
* @param capabilitySetName Name of capability set.
48+
* @param context The context to associate with this operation.
49+
* @throws IllegalArgumentException thrown if parameters fail the validation.
50+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
51+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
52+
* @return capabilities at specified location in a given subscription along with {@link Response}.
53+
*/
54+
@ServiceMethod(returns = ReturnType.SINGLE)
55+
Response<CapabilityInner> getWithResponse(String locationName, String capabilitySetName, Context context);
56+
57+
/**
58+
* Get capabilities at specified location in a given subscription.
59+
*
60+
* @param locationName The name of the location.
61+
* @param capabilitySetName Name of capability set.
62+
* @throws IllegalArgumentException thrown if parameters fail the validation.
63+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
64+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
65+
* @return capabilities at specified location in a given subscription.
66+
*/
67+
@ServiceMethod(returns = ReturnType.SINGLE)
68+
CapabilityInner get(String locationName, String capabilitySetName);
69+
}

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

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/** The interface for MySqlManagementClient class. */
1111
public interface MySqlManagementClient {
1212
/**
13-
* Gets The ID of the target subscription.
13+
* Gets The ID of the target subscription. The value must be an UUID.
1414
*
1515
* @return the subscriptionId value.
1616
*/
@@ -23,6 +23,13 @@ public interface MySqlManagementClient {
2323
*/
2424
String getEndpoint();
2525

26+
/**
27+
* Gets Api Version.
28+
*
29+
* @return the apiVersion value.
30+
*/
31+
String getApiVersion();
32+
2633
/**
2734
* Gets The HTTP pipeline to send requests through.
2835
*
@@ -93,6 +100,13 @@ public interface MySqlManagementClient {
93100
*/
94101
ReplicasClient getReplicas();
95102

103+
/**
104+
* Gets the ServersMigrationsClient object to access its operations.
105+
*
106+
* @return the ServersMigrationsClient object.
107+
*/
108+
ServersMigrationsClient getServersMigrations();
109+
96110
/**
97111
* Gets the LogFilesClient object to access its operations.
98112
*
@@ -107,6 +121,13 @@ public interface MySqlManagementClient {
107121
*/
108122
LocationBasedCapabilitiesClient getLocationBasedCapabilities();
109123

124+
/**
125+
* Gets the LocationBasedCapabilitySetsClient object to access its operations.
126+
*
127+
* @return the LocationBasedCapabilitySetsClient object.
128+
*/
129+
LocationBasedCapabilitySetsClient getLocationBasedCapabilitySets();
130+
110131
/**
111132
* Gets the CheckVirtualNetworkSubnetUsagesClient object to access its operations.
112133
*
@@ -128,6 +149,13 @@ public interface MySqlManagementClient {
128149
*/
129150
CheckNameAvailabilityWithoutLocationsClient getCheckNameAvailabilityWithoutLocations();
130151

152+
/**
153+
* Gets the OperationResultsClient object to access its operations.
154+
*
155+
* @return the OperationResultsClient object.
156+
*/
157+
OperationResultsClient getOperationResults();
158+
131159
/**
132160
* Gets the GetPrivateDnsZoneSuffixesClient object to access its operations.
133161
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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.util.Context;
11+
import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.OperationStatusExtendedResultInner;
12+
13+
/** An instance of this class provides access to all the operations defined in OperationResultsClient. */
14+
public interface OperationResultsClient {
15+
/**
16+
* Get the operation result for a long running operation.
17+
*
18+
* @param locationName The name of the location.
19+
* @param operationId The operation Id.
20+
* @param context The context to associate with this operation.
21+
* @throws IllegalArgumentException thrown if parameters fail the validation.
22+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
23+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
24+
* @return the operation result for a long running operation along with {@link Response}.
25+
*/
26+
@ServiceMethod(returns = ReturnType.SINGLE)
27+
Response<OperationStatusExtendedResultInner> getWithResponse(
28+
String locationName, String operationId, Context context);
29+
30+
/**
31+
* Get the operation result for a long running operation.
32+
*
33+
* @param locationName The name of the location.
34+
* @param operationId The operation Id.
35+
* @throws IllegalArgumentException thrown if parameters fail the validation.
36+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
37+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
38+
* @return the operation result for a long running operation.
39+
*/
40+
@ServiceMethod(returns = ReturnType.SINGLE)
41+
OperationStatusExtendedResultInner get(String locationName, String operationId);
42+
}

0 commit comments

Comments
 (0)