Skip to content

Commit c9bd246

Browse files
author
SDKAuto
committed
CodeGen from PR 33888 in Azure/azure-rest-api-specs
Merge fdd3e2bf97e320a0e6dd55d8f634efbe4058baa7 into 6ea706e86e0f35817367e394146d337154536350
1 parent 41e7411 commit c9bd246

File tree

48 files changed

+50
-2369
lines changed

Some content is hidden

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

48 files changed

+50
-2369
lines changed

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
# Release History
22

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2025-04-15)
44

5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
5+
- Azure Resource Manager Informatica DataManagement client library for Java. This package contains Microsoft Azure SDK for Informatica DataManagement Management SDK. Package tag package-2024-05-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
126

137
## 1.0.0 (2024-07-15)
148

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
InformaticaDataManagementManager manager = InformaticaDataManagementManager
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/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/pom.xml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,10 @@
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>
49+
<spotless.skip>false</spotless.skip>
4850
</properties>
4951
<dependencies>
50-
<dependency>
51-
<groupId>com.azure</groupId>
52-
<artifactId>azure-json</artifactId>
53-
<version>1.5.0</version> <!-- {x-version-update;com.azure:azure-json;dependency} -->
54-
</dependency>
5552
<dependency>
5653
<groupId>com.azure</groupId>
5754
<artifactId>azure-core</artifactId>
@@ -62,6 +59,11 @@
6259
<artifactId>azure-core-management</artifactId>
6360
<version>1.17.0</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
6461
</dependency>
62+
<dependency>
63+
<groupId>com.azure</groupId>
64+
<artifactId>azure-json</artifactId>
65+
<version>1.5.0</version> <!-- {x-version-update;com.azure:azure-json;dependency} -->
66+
</dependency>
6567
<dependency>
6668
<groupId>com.azure</groupId>
6769
<artifactId>azure-core-test</artifactId>

sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/InformaticaDataManagementManager.java

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,18 @@
1111
import com.azure.core.http.HttpPipelinePosition;
1212
import com.azure.core.http.policy.AddDatePolicy;
1313
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
14-
import com.azure.core.http.policy.HttpLoggingPolicy;
14+
import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
1515
import com.azure.core.http.policy.HttpLogOptions;
16+
import com.azure.core.http.policy.HttpLoggingPolicy;
1617
import com.azure.core.http.policy.HttpPipelinePolicy;
1718
import com.azure.core.http.policy.HttpPolicyProviders;
1819
import com.azure.core.http.policy.RequestIdPolicy;
1920
import com.azure.core.http.policy.RetryOptions;
2021
import com.azure.core.http.policy.RetryPolicy;
2122
import com.azure.core.http.policy.UserAgentPolicy;
22-
import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
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.informaticadatamanagement.fluent.InformaticaDataManagement;
2728
import com.azure.resourcemanager.informaticadatamanagement.implementation.InformaticaDataManagementBuilder;
@@ -35,6 +36,7 @@
3536
import java.time.temporal.ChronoUnit;
3637
import java.util.ArrayList;
3738
import java.util.List;
39+
import java.util.Map;
3840
import java.util.Objects;
3941
import java.util.stream.Collectors;
4042

@@ -102,6 +104,9 @@ public static Configurable configure() {
102104
*/
103105
public static final class Configurable {
104106
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
107+
private static final String SDK_VERSION = "version";
108+
private static final Map<String, String> PROPERTIES
109+
= CoreUtils.getProperties("azure-resourcemanager-informaticadatamanagement.properties");
105110

106111
private HttpClient httpClient;
107112
private HttpLogOptions httpLogOptions;
@@ -209,12 +214,14 @@ public InformaticaDataManagementManager authenticate(TokenCredential credential,
209214
Objects.requireNonNull(credential, "'credential' cannot be null.");
210215
Objects.requireNonNull(profile, "'profile' cannot be null.");
211216

217+
String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
218+
212219
StringBuilder userAgentBuilder = new StringBuilder();
213220
userAgentBuilder.append("azsdk-java")
214221
.append("-")
215222
.append("com.azure.resourcemanager.informaticadatamanagement")
216223
.append("/")
217-
.append("1.0.0");
224+
.append(clientVersion);
218225
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
219226
userAgentBuilder.append(" (")
220227
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -247,7 +254,7 @@ public InformaticaDataManagementManager authenticate(TokenCredential credential,
247254
HttpPolicyProviders.addBeforeRetryPolicies(policies);
248255
policies.add(retryPolicy);
249256
policies.add(new AddDatePolicy());
250-
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
257+
policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
251258
policies.addAll(this.policies.stream()
252259
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
253260
.collect(Collectors.toList()));

sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaOrganizationResourceInner.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ public final class InformaticaOrganizationResourceInner extends Resource {
3030
private SystemData systemData;
3131

3232
/*
33-
* Fully qualified resource Id for the resource.
33+
* The type of the resource.
3434
*/
35-
private String id;
35+
private String type;
3636

3737
/*
3838
* The name of the resource.
3939
*/
4040
private String name;
4141

4242
/*
43-
* The type of the resource.
43+
* Fully qualified resource Id for the resource.
4444
*/
45-
private String type;
45+
private String id;
4646

4747
/**
4848
* Creates an instance of InformaticaOrganizationResourceInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
8080
}
8181

8282
/**
83-
* Get the id property: Fully qualified resource Id for the resource.
83+
* Get the type property: The type of the resource.
8484
*
85-
* @return the id value.
85+
* @return the type value.
8686
*/
8787
@Override
88-
public String id() {
89-
return this.id;
88+
public String type() {
89+
return this.type;
9090
}
9191

9292
/**
@@ -100,13 +100,13 @@ public String name() {
100100
}
101101

102102
/**
103-
* Get the type property: The type of the resource.
103+
* Get the id property: Fully qualified resource Id for the resource.
104104
*
105-
* @return the type value.
105+
* @return the id value.
106106
*/
107107
@Override
108-
public String type() {
109-
return this.type;
108+
public String id() {
109+
return this.id;
110110
}
111111

112112
/**

sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaServerlessRuntimeResourceInner.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ public final class InformaticaServerlessRuntimeResourceInner extends ProxyResour
2929
private SystemData systemData;
3030

3131
/*
32-
* Fully qualified resource Id for the resource.
32+
* The type of the resource.
3333
*/
34-
private String id;
34+
private String type;
3535

3636
/*
3737
* The name of the resource.
3838
*/
3939
private String name;
4040

4141
/*
42-
* The type of the resource.
42+
* Fully qualified resource Id for the resource.
4343
*/
44-
private String type;
44+
private String id;
4545

4646
/**
4747
* Creates an instance of InformaticaServerlessRuntimeResourceInner class.
@@ -79,13 +79,13 @@ public SystemData systemData() {
7979
}
8080

8181
/**
82-
* Get the id property: Fully qualified resource Id for the resource.
82+
* Get the type property: The type of the resource.
8383
*
84-
* @return the id value.
84+
* @return the type value.
8585
*/
8686
@Override
87-
public String id() {
88-
return this.id;
87+
public String type() {
88+
return this.type;
8989
}
9090

9191
/**
@@ -99,13 +99,13 @@ public String name() {
9999
}
100100

101101
/**
102-
* Get the type property: The type of the resource.
102+
* Get the id property: Fully qualified resource Id for the resource.
103103
*
104-
* @return the type value.
104+
* @return the id value.
105105
*/
106106
@Override
107-
public String type() {
108-
return this.type;
107+
public String id() {
108+
return this.id;
109109
}
110110

111111
/**

sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
import com.azure.core.management.AzureEnvironment;
1414
import com.azure.core.management.exception.ManagementError;
1515
import com.azure.core.management.exception.ManagementException;
16-
import com.azure.core.management.polling.PollerFactory;
1716
import com.azure.core.management.polling.PollResult;
17+
import com.azure.core.management.polling.PollerFactory;
1818
import com.azure.core.util.Context;
1919
import com.azure.core.util.CoreUtils;
2020
import com.azure.core.util.logging.ClientLogger;
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[ [ "com.azure.resourcemanager.informaticadatamanagement.implementation.OperationsClientImpl$OperationsService" ], [ "com.azure.resourcemanager.informaticadatamanagement.implementation.OrganizationsClientImpl$OrganizationsService" ], [ "com.azure.resourcemanager.informaticadatamanagement.implementation.ServerlessRuntimesClientImpl$ServerlessRuntimesService" ] ]
1+
[["com.azure.resourcemanager.informaticadatamanagement.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.informaticadatamanagement.implementation.OrganizationsClientImpl$OrganizationsService"],["com.azure.resourcemanager.informaticadatamanagement.implementation.ServerlessRuntimesClientImpl$ServerlessRuntimesService"]]
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[ ]
1+
[]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version=${project.version}

0 commit comments

Comments
 (0)