Skip to content

Commit d9478cd

Browse files
author
SDKAuto
committed
CodeGen from PR 3633 in test-repo-billy/azure-rest-api-specs
Merge e264abbfa0513f2f1c0422ae562a86d9d58adb70 into 76bf8250a833bba98aa233f0d27fa900ce05aaa0
1 parent a4c0a31 commit d9478cd

File tree

1,118 files changed

+3085
-40457
lines changed

Some content is hidden

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

1,118 files changed

+3085
-40457
lines changed

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

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

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

5-
### Features Added
5+
- Azure Resource Manager DataFactory client library for Java. This package contains Microsoft Azure SDK for DataFactory Management SDK. The Azure Data Factory V2 management API provides a RESTful set of web services that interact with Azure Data Factory V2 services. Package tag package-2018-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
### Breaking Changes
88

9-
### Bugs Fixed
9+
#### `models.Factories` was modified
10+
11+
* `list(com.azure.core.util.Context)` was removed
12+
* `list()` was removed
13+
14+
### Features Added
15+
16+
* `models.GreenplumAuthenticationType` was added
1017

11-
### Other Changes
18+
* `models.TeradataSink` was added
19+
20+
* `models.OracleAuthenticationType` was added
21+
22+
* `models.TeradataImportCommand` was added
23+
24+
#### `models.GreenplumLinkedService` was modified
25+
26+
* `withSslMode(java.lang.Object)` was added
27+
* `withPassword(models.SecretBase)` was added
28+
* `commandTimeout()` was added
29+
* `database()` was added
30+
* `password()` was added
31+
* `host()` was added
32+
* `withAuthenticationType(models.GreenplumAuthenticationType)` was added
33+
* `withCommandTimeout(java.lang.Object)` was added
34+
* `authenticationType()` was added
35+
* `port()` was added
36+
* `withConnectionTimeout(java.lang.Object)` was added
37+
* `username()` was added
38+
* `withDatabase(java.lang.Object)` was added
39+
* `withUsername(java.lang.Object)` was added
40+
* `withPort(java.lang.Object)` was added
41+
* `withHost(java.lang.Object)` was added
42+
* `connectionTimeout()` was added
43+
* `sslMode()` was added
44+
45+
#### `models.TeradataLinkedService` was modified
46+
47+
* `httpsPortNumber()` was added
48+
* `sslMode()` was added
49+
* `withCharacterSet(java.lang.Object)` was added
50+
* `withHttpsPortNumber(java.lang.Object)` was added
51+
* `withPortNumber(java.lang.Object)` was added
52+
* `withSslMode(java.lang.Object)` was added
53+
* `portNumber()` was added
54+
* `withMaxRespSize(java.lang.Object)` was added
55+
* `maxRespSize()` was added
56+
* `characterSet()` was added
57+
* `withUseDataEncryption(java.lang.Object)` was added
58+
* `useDataEncryption()` was added
59+
60+
#### `models.TypeConversionSettings` was modified
61+
62+
* `withDateFormat(java.lang.Object)` was added
63+
* `dateFormat()` was added
64+
* `timeFormat()` was added
65+
* `withTimeFormat(java.lang.Object)` was added
66+
67+
#### `models.AzurePostgreSqlLinkedService` was modified
68+
69+
* `withServicePrincipalEmbeddedCert(models.SecretBase)` was added
70+
* `servicePrincipalKey()` was added
71+
* `withServicePrincipalEmbeddedCertPassword(models.SecretBase)` was added
72+
* `withServicePrincipalKey(models.SecretBase)` was added
73+
* `servicePrincipalEmbeddedCert()` was added
74+
* `withCredential(models.CredentialReference)` was added
75+
* `servicePrincipalId()` was added
76+
* `servicePrincipalEmbeddedCertPassword()` was added
77+
* `azureCloudType()` was added
78+
* `withTenant(java.lang.Object)` was added
79+
* `withServicePrincipalCredentialType(java.lang.Object)` was added
80+
* `credential()` was added
81+
* `tenant()` was added
82+
* `withAzureCloudType(java.lang.Object)` was added
83+
* `withServicePrincipalId(java.lang.Object)` was added
84+
* `servicePrincipalCredentialType()` was added
85+
86+
#### `models.OracleLinkedService` was modified
87+
88+
* `withSupportV1DataTypes(java.lang.Object)` was added
89+
* `enableBulkLoad()` was added
90+
* `withCryptoChecksumClient(java.lang.Object)` was added
91+
* `withServer(java.lang.Object)` was added
92+
* `encryptionClient()` was added
93+
* `cryptoChecksumClient()` was added
94+
* `withInitialLobFetchSize(java.lang.Object)` was added
95+
* `fetchSize()` was added
96+
* `withAuthenticationType(models.OracleAuthenticationType)` was added
97+
* `withEncryptionClient(java.lang.Object)` was added
98+
* `initializationString()` was added
99+
* `supportV1DataTypes()` was added
100+
* `initialLobFetchSize()` was added
101+
* `statementCacheSize()` was added
102+
* `fetchTswtzAsTimestamp()` was added
103+
* `withInitializationString(java.lang.Object)` was added
104+
* `withEnableBulkLoad(java.lang.Object)` was added
105+
* `withEncryptionTypesClient(java.lang.Object)` was added
106+
* `username()` was added
107+
* `encryptionTypesClient()` was added
108+
* `authenticationType()` was added
109+
* `withFetchTswtzAsTimestamp(java.lang.Object)` was added
110+
* `server()` was added
111+
* `withCryptoChecksumTypesClient(java.lang.Object)` was added
112+
* `withStatementCacheSize(java.lang.Object)` was added
113+
* `cryptoChecksumTypesClient()` was added
114+
* `withFetchSize(java.lang.Object)` was added
115+
* `withUsername(java.lang.Object)` was added
12116

13117
## 1.0.0 (2024-12-16)
14118

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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-datafactory</artifactId>
35-
<version>1.0.0</version>
35+
<version>1.1.0-beta.1</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})
@@ -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
DataFactoryManager manager = DataFactoryManager
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

@@ -73,19 +73,19 @@ See [API design][design] for general introduction on design and key concepts on
7373
```java
7474
// storage account
7575
StorageAccount storageAccount = storageManager.storageAccounts()
76-
.define(STORAGE_ACCOUNT)
76+
.define(storageAccountName)
7777
.withRegion(REGION)
7878
.withExistingResourceGroup(resourceGroup)
7979
.create();
8080
final String storageAccountKey = storageAccount.getKeys().iterator().next().value();
8181
final String connectionString
82-
= getStorageConnectionString(STORAGE_ACCOUNT, storageAccountKey, storageManager.environment());
82+
= getStorageConnectionString(storageAccountName, storageAccountKey, storageManager.environment());
8383

8484
// container
8585
final String containerName = "adf";
8686
storageManager.blobContainers()
8787
.defineContainer(containerName)
88-
.withExistingStorageAccount(resourceGroup, STORAGE_ACCOUNT)
88+
.withExistingStorageAccount(resourceGroup, storageAccountName)
8989
.withPublicAccess(PublicAccess.NONE)
9090
.create();
9191

@@ -193,5 +193,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
193193
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
194194
[coc]: https://opensource.microsoft.com/codeofconduct/
195195
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
196-
197-

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

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
- [GetByResourceGroup](#factories_getbyresourcegroup)
5959
- [GetDataPlaneAccess](#factories_getdataplaneaccess)
6060
- [GetGitHubAccessToken](#factories_getgithubaccesstoken)
61-
- [List](#factories_list)
6261
- [ListByResourceGroup](#factories_listbyresourcegroup)
6362
- [Update](#factories_update)
6463

@@ -1330,28 +1329,6 @@ public final class FactoriesGetGitHubAccessTokenSamples {
13301329
}
13311330
```
13321331

1333-
### Factories_List
1334-
1335-
```java
1336-
/**
1337-
* Samples for Factories List.
1338-
*/
1339-
public final class FactoriesListSamples {
1340-
/*
1341-
* x-ms-original-file:
1342-
* specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json
1343-
*/
1344-
/**
1345-
* Sample code: Factories_List.
1346-
*
1347-
* @param manager Entry point to DataFactoryManager.
1348-
*/
1349-
public static void factoriesList(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
1350-
manager.factories().list(com.azure.core.util.Context.NONE);
1351-
}
1352-
}
1353-
```
1354-
13551332
### Factories_ListByResourceGroup
13561333

13571334
```java

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
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.datafactory.fluent.DataFactoryManagementClient;
2728
import com.azure.resourcemanager.datafactory.implementation.ActivityRunsImpl;
@@ -75,6 +76,7 @@
7576
import java.time.temporal.ChronoUnit;
7677
import java.util.ArrayList;
7778
import java.util.List;
79+
import java.util.Map;
7880
import java.util.Objects;
7981
import java.util.stream.Collectors;
8082

@@ -182,6 +184,9 @@ public static Configurable configure() {
182184
*/
183185
public static final class Configurable {
184186
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
187+
private static final String SDK_VERSION = "version";
188+
private static final Map<String, String> PROPERTIES
189+
= CoreUtils.getProperties("azure-resourcemanager-datafactory.properties");
185190

186191
private HttpClient httpClient;
187192
private HttpLogOptions httpLogOptions;
@@ -289,12 +294,14 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
289294
Objects.requireNonNull(credential, "'credential' cannot be null.");
290295
Objects.requireNonNull(profile, "'profile' cannot be null.");
291296

297+
String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
298+
292299
StringBuilder userAgentBuilder = new StringBuilder();
293300
userAgentBuilder.append("azsdk-java")
294301
.append("-")
295302
.append("com.azure.resourcemanager.datafactory")
296303
.append("/")
297-
.append("1.0.0");
304+
.append(clientVersion);
298305
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
299306
userAgentBuilder.append(" (")
300307
.append(Configuration.getGlobalConfiguration().get("java.version"))

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/FactoriesClient.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,6 @@
2121
* An instance of this class provides access to all the operations defined in FactoriesClient.
2222
*/
2323
public interface FactoriesClient {
24-
/**
25-
* Lists factories under the specified subscription.
26-
*
27-
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
28-
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
29-
* @return a list of factory resources as paginated response with {@link PagedIterable}.
30-
*/
31-
@ServiceMethod(returns = ReturnType.COLLECTION)
32-
PagedIterable<FactoryInner> list();
33-
34-
/**
35-
* Lists factories under the specified subscription.
36-
*
37-
* @param context The context to associate with this operation.
38-
* @throws IllegalArgumentException thrown if parameters fail the validation.
39-
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
40-
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
41-
* @return a list of factory resources as paginated response with {@link PagedIterable}.
42-
*/
43-
@ServiceMethod(returns = ReturnType.COLLECTION)
44-
PagedIterable<FactoryInner> list(Context context);
45-
4624
/**
4725
* Updates a factory's repo information.
4826
*

0 commit comments

Comments
 (0)