Skip to content

[AutoPR azure-resourcemanager-datafactory] [test] multi package and service #13753

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 10 additions & 4 deletions sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
# Release History

## 1.1.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2025-01-20)

### Features Added
- 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).

### Breaking Changes

### Bugs Fixed
#### `models.ScriptActivity` was modified

* `returnMultistatementResult()` was removed
* `withReturnMultistatementResult(java.lang.Object)` was removed

#### `models.Factories` was modified

### Other Changes
* `list()` was removed
* `list(com.azure.core.util.Context)` was removed

## 1.0.0 (2024-12-16)

Expand Down
8 changes: 4 additions & 4 deletions sdk/datafactory/azure-resourcemanager-datafactory/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-datafactory</artifactId>
<version>1.0.0</version>
<version>1.1.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down Expand Up @@ -73,19 +73,19 @@ See [API design][design] for general introduction on design and key concepts on
```java
// storage account
StorageAccount storageAccount = storageManager.storageAccounts()
.define(STORAGE_ACCOUNT)
.define(storageAccountName)
.withRegion(REGION)
.withExistingResourceGroup(resourceGroup)
.create();
final String storageAccountKey = storageAccount.getKeys().iterator().next().value();
final String connectionString
= getStorageConnectionString(STORAGE_ACCOUNT, storageAccountKey, storageManager.environment());
= getStorageConnectionString(storageAccountName, storageAccountKey, storageManager.environment());

// container
final String containerName = "adf";
storageManager.blobContainers()
.defineContainer(containerName)
.withExistingStorageAccount(resourceGroup, STORAGE_ACCOUNT)
.withExistingStorageAccount(resourceGroup, storageAccountName)
.withPublicAccess(PublicAccess.NONE)
.create();

Expand Down
23 changes: 0 additions & 23 deletions sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
- [GetByResourceGroup](#factories_getbyresourcegroup)
- [GetDataPlaneAccess](#factories_getdataplaneaccess)
- [GetGitHubAccessToken](#factories_getgithubaccesstoken)
- [List](#factories_list)
- [ListByResourceGroup](#factories_listbyresourcegroup)
- [Update](#factories_update)

Expand Down Expand Up @@ -1330,28 +1329,6 @@ public final class FactoriesGetGitHubAccessTokenSamples {
}
```

### Factories_List

```java
/**
* Samples for Factories List.
*/
public final class FactoriesListSamples {
/*
* x-ms-original-file:
* specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json
*/
/**
* Sample code: Factories_List.
*
* @param manager Entry point to DataFactoryManager.
*/
public static void factoriesList(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager.factories().list(com.azure.core.util.Context.NONE);
}
}
```

### Factories_ListByResourceGroup

```java
Expand Down
1 change: 1 addition & 0 deletions sdk/datafactory/azure-resourcemanager-datafactory/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
<spotless.skip>false</spotless.skip>
</properties>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.datafactory")
.append("/")
.append("1.0.0");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,6 @@
* An instance of this class provides access to all the operations defined in FactoriesClient.
*/
public interface FactoriesClient {
/**
* Lists factories under the specified subscription.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of factory resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<FactoryInner> list();

/**
* Lists factories under the specified subscription.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of factory resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<FactoryInner> list(Context context);

/**
* Updates a factory's repo information.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ public final class ScriptActivityTypeProperties implements JsonSerializable<Scri
*/
private ScriptActivityTypePropertiesLogSettings logSettings;

/*
* Enable to retrieve result sets from multiple SQL statements and the number of rows affected by the DML statement.
* Supported connector: SnowflakeV2. Type: boolean (or Expression with resultType boolean).
*/
private Object returnMultistatementResult;

/**
* Creates an instance of ScriptActivityTypeProperties class.
*/
Expand Down Expand Up @@ -109,30 +103,6 @@ public ScriptActivityTypeProperties withLogSettings(ScriptActivityTypeProperties
return this;
}

/**
* Get the returnMultistatementResult property: Enable to retrieve result sets from multiple SQL statements and the
* number of rows affected by the DML statement. Supported connector: SnowflakeV2. Type: boolean (or Expression with
* resultType boolean).
*
* @return the returnMultistatementResult value.
*/
public Object returnMultistatementResult() {
return this.returnMultistatementResult;
}

/**
* Set the returnMultistatementResult property: Enable to retrieve result sets from multiple SQL statements and the
* number of rows affected by the DML statement. Supported connector: SnowflakeV2. Type: boolean (or Expression with
* resultType boolean).
*
* @param returnMultistatementResult the returnMultistatementResult value to set.
* @return the ScriptActivityTypeProperties object itself.
*/
public ScriptActivityTypeProperties withReturnMultistatementResult(Object returnMultistatementResult) {
this.returnMultistatementResult = returnMultistatementResult;
return this;
}

/**
* Validates the instance.
*
Expand All @@ -156,7 +126,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("scriptBlockExecutionTimeout", this.scriptBlockExecutionTimeout);
jsonWriter.writeArrayField("scripts", this.scripts, (writer, element) -> writer.writeJson(element));
jsonWriter.writeJsonField("logSettings", this.logSettings);
jsonWriter.writeUntypedField("returnMultistatementResult", this.returnMultistatementResult);
return jsonWriter.writeEndObject();
}

Expand Down Expand Up @@ -184,8 +153,6 @@ public static ScriptActivityTypeProperties fromJson(JsonReader jsonReader) throw
} else if ("logSettings".equals(fieldName)) {
deserializedScriptActivityTypeProperties.logSettings
= ScriptActivityTypePropertiesLogSettings.fromJson(reader);
} else if ("returnMultistatementResult".equals(fieldName)) {
deserializedScriptActivityTypeProperties.returnMultistatementResult = reader.readUntyped();
} else {
reader.skipChildren();
}
Expand Down
Loading
Loading