Skip to content

Commit fbd7b41

Browse files
author
SDKAuto
committed
CodeGen from PR 33314 in Azure/azure-rest-api-specs
Merge 1c73adc91e1bd80b6970805115d5f3dc9e7c5870 into 3db6867b8e524ea6d1bc7a3bbb989fe50dd2f184
1 parent 656cfa9 commit fbd7b41

File tree

558 files changed

+58824
-5075
lines changed

Some content is hidden

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

558 files changed

+58824
-5075
lines changed

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

Lines changed: 983 additions & 4 deletions
Large diffs are not rendered by default.

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

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

33
Azure Resource Manager DataMigration client library for Java.
44

5-
This package contains Microsoft Azure SDK for DataMigration Management SDK. Data Migration Client. Package tag package-2018-04-19. 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 DataMigration Management SDK. Data Migration Client. Package tag package-preview-2025-03. 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

@@ -52,15 +52,15 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
5252
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
5353

5454
```java
55-
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
55+
AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
5656
TokenCredential credential = new DefaultAzureCredentialBuilder()
5757
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
5858
.build();
5959
DataMigrationManager manager = DataMigrationManager
6060
.authenticate(credential, profile);
6161
```
6262

63-
The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
63+
The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
6464

6565
See [Authentication][authenticate] for more options.
6666

@@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
100100
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
101101
[coc]: https://opensource.microsoft.com/codeofconduct/
102102
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
103-
104-

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

Lines changed: 2128 additions & 126 deletions
Large diffs are not rendered by default.

sdk/datamigration/azure-resourcemanager-datamigration/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 DataMigration Management</name>
21-
<description>This package contains Microsoft Azure SDK for DataMigration Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Data Migration Client. Package tag package-2018-04-19.</description>
21+
<description>This package contains Microsoft Azure SDK for DataMigration Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Data Migration Client. Package tag package-preview-2025-03.</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
<spotless.skip>false</spotless.skip>
4950
</properties>
5051
<dependencies>

sdk/datamigration/azure-resourcemanager-datamigration/src/main/java/com/azure/resourcemanager/datamigration/DataMigrationManager.java

Lines changed: 165 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,45 @@
2222
import com.azure.core.http.policy.UserAgentPolicy;
2323
import com.azure.core.management.profile.AzureProfile;
2424
import com.azure.core.util.Configuration;
25+
import com.azure.core.util.CoreUtils;
2526
import com.azure.core.util.logging.ClientLogger;
2627
import com.azure.resourcemanager.datamigration.fluent.DataMigrationManagementClient;
2728
import com.azure.resourcemanager.datamigration.implementation.DataMigrationManagementClientBuilder;
29+
import com.azure.resourcemanager.datamigration.implementation.DatabaseMigrationsMongoToCosmosDbRUMongoesImpl;
30+
import com.azure.resourcemanager.datamigration.implementation.DatabaseMigrationsMongoToCosmosDbvCoreMongoesImpl;
31+
import com.azure.resourcemanager.datamigration.implementation.DatabaseMigrationsSqlDbsImpl;
32+
import com.azure.resourcemanager.datamigration.implementation.DatabaseMigrationsSqlMisImpl;
33+
import com.azure.resourcemanager.datamigration.implementation.DatabaseMigrationsSqlVmsImpl;
34+
import com.azure.resourcemanager.datamigration.implementation.FilesImpl;
35+
import com.azure.resourcemanager.datamigration.implementation.MigrationServicesImpl;
2836
import com.azure.resourcemanager.datamigration.implementation.OperationsImpl;
2937
import com.azure.resourcemanager.datamigration.implementation.ProjectsImpl;
3038
import com.azure.resourcemanager.datamigration.implementation.ResourceSkusImpl;
39+
import com.azure.resourcemanager.datamigration.implementation.ServiceTasksImpl;
3140
import com.azure.resourcemanager.datamigration.implementation.ServicesImpl;
41+
import com.azure.resourcemanager.datamigration.implementation.SqlMigrationServicesImpl;
3242
import com.azure.resourcemanager.datamigration.implementation.TasksImpl;
3343
import com.azure.resourcemanager.datamigration.implementation.UsagesImpl;
44+
import com.azure.resourcemanager.datamigration.models.DatabaseMigrationsMongoToCosmosDbRUMongoes;
45+
import com.azure.resourcemanager.datamigration.models.DatabaseMigrationsMongoToCosmosDbvCoreMongoes;
46+
import com.azure.resourcemanager.datamigration.models.DatabaseMigrationsSqlDbs;
47+
import com.azure.resourcemanager.datamigration.models.DatabaseMigrationsSqlMis;
48+
import com.azure.resourcemanager.datamigration.models.DatabaseMigrationsSqlVms;
49+
import com.azure.resourcemanager.datamigration.models.Files;
50+
import com.azure.resourcemanager.datamigration.models.MigrationServices;
3451
import com.azure.resourcemanager.datamigration.models.Operations;
3552
import com.azure.resourcemanager.datamigration.models.Projects;
3653
import com.azure.resourcemanager.datamigration.models.ResourceSkus;
54+
import com.azure.resourcemanager.datamigration.models.ServiceTasks;
3755
import com.azure.resourcemanager.datamigration.models.Services;
56+
import com.azure.resourcemanager.datamigration.models.SqlMigrationServices;
3857
import com.azure.resourcemanager.datamigration.models.Tasks;
3958
import com.azure.resourcemanager.datamigration.models.Usages;
4059
import java.time.Duration;
4160
import java.time.temporal.ChronoUnit;
4261
import java.util.ArrayList;
4362
import java.util.List;
63+
import java.util.Map;
4464
import java.util.Objects;
4565
import java.util.stream.Collectors;
4666

@@ -49,17 +69,35 @@
4969
* Data Migration Client.
5070
*/
5171
public final class DataMigrationManager {
72+
private DatabaseMigrationsMongoToCosmosDbRUMongoes databaseMigrationsMongoToCosmosDbRUMongoes;
73+
74+
private DatabaseMigrationsMongoToCosmosDbvCoreMongoes databaseMigrationsMongoToCosmosDbvCoreMongoes;
75+
76+
private DatabaseMigrationsSqlDbs databaseMigrationsSqlDbs;
77+
78+
private DatabaseMigrationsSqlMis databaseMigrationsSqlMis;
79+
80+
private DatabaseMigrationsSqlVms databaseMigrationsSqlVms;
81+
82+
private Operations operations;
83+
84+
private MigrationServices migrationServices;
85+
86+
private SqlMigrationServices sqlMigrationServices;
87+
5288
private ResourceSkus resourceSkus;
5389

5490
private Services services;
5591

5692
private Tasks tasks;
5793

94+
private ServiceTasks serviceTasks;
95+
5896
private Projects projects;
5997

6098
private Usages usages;
6199

62-
private Operations operations;
100+
private Files files;
63101

64102
private final DataMigrationManagementClient clientObject;
65103

@@ -113,6 +151,9 @@ public static Configurable configure() {
113151
*/
114152
public static final class Configurable {
115153
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
154+
private static final String SDK_VERSION = "version";
155+
private static final Map<String, String> PROPERTIES
156+
= CoreUtils.getProperties("azure-resourcemanager-datamigration.properties");
116157

117158
private HttpClient httpClient;
118159
private HttpLogOptions httpLogOptions;
@@ -220,12 +261,14 @@ public DataMigrationManager authenticate(TokenCredential credential, AzureProfil
220261
Objects.requireNonNull(credential, "'credential' cannot be null.");
221262
Objects.requireNonNull(profile, "'profile' cannot be null.");
222263

264+
String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
265+
223266
StringBuilder userAgentBuilder = new StringBuilder();
224267
userAgentBuilder.append("azsdk-java")
225268
.append("-")
226269
.append("com.azure.resourcemanager.datamigration")
227270
.append("/")
228-
.append("1.0.0");
271+
.append(clientVersion);
229272
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
230273
userAgentBuilder.append(" (")
231274
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -271,6 +314,108 @@ public DataMigrationManager authenticate(TokenCredential credential, AzureProfil
271314
}
272315
}
273316

317+
/**
318+
* Gets the resource collection API of DatabaseMigrationsMongoToCosmosDbRUMongoes. It manages
319+
* DatabaseMigrationCosmosDbMongo.
320+
*
321+
* @return Resource collection API of DatabaseMigrationsMongoToCosmosDbRUMongoes.
322+
*/
323+
public DatabaseMigrationsMongoToCosmosDbRUMongoes databaseMigrationsMongoToCosmosDbRUMongoes() {
324+
if (this.databaseMigrationsMongoToCosmosDbRUMongoes == null) {
325+
this.databaseMigrationsMongoToCosmosDbRUMongoes = new DatabaseMigrationsMongoToCosmosDbRUMongoesImpl(
326+
clientObject.getDatabaseMigrationsMongoToCosmosDbRUMongoes(), this);
327+
}
328+
return databaseMigrationsMongoToCosmosDbRUMongoes;
329+
}
330+
331+
/**
332+
* Gets the resource collection API of DatabaseMigrationsMongoToCosmosDbvCoreMongoes.
333+
*
334+
* @return Resource collection API of DatabaseMigrationsMongoToCosmosDbvCoreMongoes.
335+
*/
336+
public DatabaseMigrationsMongoToCosmosDbvCoreMongoes databaseMigrationsMongoToCosmosDbvCoreMongoes() {
337+
if (this.databaseMigrationsMongoToCosmosDbvCoreMongoes == null) {
338+
this.databaseMigrationsMongoToCosmosDbvCoreMongoes = new DatabaseMigrationsMongoToCosmosDbvCoreMongoesImpl(
339+
clientObject.getDatabaseMigrationsMongoToCosmosDbvCoreMongoes(), this);
340+
}
341+
return databaseMigrationsMongoToCosmosDbvCoreMongoes;
342+
}
343+
344+
/**
345+
* Gets the resource collection API of DatabaseMigrationsSqlDbs. It manages DatabaseMigrationSqlDb.
346+
*
347+
* @return Resource collection API of DatabaseMigrationsSqlDbs.
348+
*/
349+
public DatabaseMigrationsSqlDbs databaseMigrationsSqlDbs() {
350+
if (this.databaseMigrationsSqlDbs == null) {
351+
this.databaseMigrationsSqlDbs
352+
= new DatabaseMigrationsSqlDbsImpl(clientObject.getDatabaseMigrationsSqlDbs(), this);
353+
}
354+
return databaseMigrationsSqlDbs;
355+
}
356+
357+
/**
358+
* Gets the resource collection API of DatabaseMigrationsSqlMis. It manages DatabaseMigrationSqlMi.
359+
*
360+
* @return Resource collection API of DatabaseMigrationsSqlMis.
361+
*/
362+
public DatabaseMigrationsSqlMis databaseMigrationsSqlMis() {
363+
if (this.databaseMigrationsSqlMis == null) {
364+
this.databaseMigrationsSqlMis
365+
= new DatabaseMigrationsSqlMisImpl(clientObject.getDatabaseMigrationsSqlMis(), this);
366+
}
367+
return databaseMigrationsSqlMis;
368+
}
369+
370+
/**
371+
* Gets the resource collection API of DatabaseMigrationsSqlVms. It manages DatabaseMigrationSqlVm.
372+
*
373+
* @return Resource collection API of DatabaseMigrationsSqlVms.
374+
*/
375+
public DatabaseMigrationsSqlVms databaseMigrationsSqlVms() {
376+
if (this.databaseMigrationsSqlVms == null) {
377+
this.databaseMigrationsSqlVms
378+
= new DatabaseMigrationsSqlVmsImpl(clientObject.getDatabaseMigrationsSqlVms(), this);
379+
}
380+
return databaseMigrationsSqlVms;
381+
}
382+
383+
/**
384+
* Gets the resource collection API of Operations.
385+
*
386+
* @return Resource collection API of Operations.
387+
*/
388+
public Operations operations() {
389+
if (this.operations == null) {
390+
this.operations = new OperationsImpl(clientObject.getOperations(), this);
391+
}
392+
return operations;
393+
}
394+
395+
/**
396+
* Gets the resource collection API of MigrationServices. It manages MigrationService.
397+
*
398+
* @return Resource collection API of MigrationServices.
399+
*/
400+
public MigrationServices migrationServices() {
401+
if (this.migrationServices == null) {
402+
this.migrationServices = new MigrationServicesImpl(clientObject.getMigrationServices(), this);
403+
}
404+
return migrationServices;
405+
}
406+
407+
/**
408+
* Gets the resource collection API of SqlMigrationServices. It manages SqlMigrationService.
409+
*
410+
* @return Resource collection API of SqlMigrationServices.
411+
*/
412+
public SqlMigrationServices sqlMigrationServices() {
413+
if (this.sqlMigrationServices == null) {
414+
this.sqlMigrationServices = new SqlMigrationServicesImpl(clientObject.getSqlMigrationServices(), this);
415+
}
416+
return sqlMigrationServices;
417+
}
418+
274419
/**
275420
* Gets the resource collection API of ResourceSkus.
276421
*
@@ -307,6 +452,18 @@ public Tasks tasks() {
307452
return tasks;
308453
}
309454

455+
/**
456+
* Gets the resource collection API of ServiceTasks.
457+
*
458+
* @return Resource collection API of ServiceTasks.
459+
*/
460+
public ServiceTasks serviceTasks() {
461+
if (this.serviceTasks == null) {
462+
this.serviceTasks = new ServiceTasksImpl(clientObject.getServiceTasks(), this);
463+
}
464+
return serviceTasks;
465+
}
466+
310467
/**
311468
* Gets the resource collection API of Projects. It manages Project.
312469
*
@@ -332,15 +489,15 @@ public Usages usages() {
332489
}
333490

334491
/**
335-
* Gets the resource collection API of Operations.
492+
* Gets the resource collection API of Files. It manages ProjectFile.
336493
*
337-
* @return Resource collection API of Operations.
494+
* @return Resource collection API of Files.
338495
*/
339-
public Operations operations() {
340-
if (this.operations == null) {
341-
this.operations = new OperationsImpl(clientObject.getOperations(), this);
496+
public Files files() {
497+
if (this.files == null) {
498+
this.files = new FilesImpl(clientObject.getFiles(), this);
342499
}
343-
return operations;
500+
return files;
344501
}
345502

346503
/**

0 commit comments

Comments
 (0)