Skip to content

Commit

Permalink
CodeGen from PR 3530 in test-repo-billy/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 87bb1999ebf0cde180161e48533344fedf4dfe68 into 6c6e1713f03acaf37e5c89652b023dd2c9eae16e
  • Loading branch information
SDKAuto committed Oct 17, 2024
1 parent 9bfc592 commit 3695e58
Show file tree
Hide file tree
Showing 1,369 changed files with 5,098 additions and 41,999 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.31 (Unreleased)
## 1.0.0-beta.1 (2024-10-17)

- 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).

### Features Added

Expand Down
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-beta.30</version>
<version>1.0.0-beta.31</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
49 changes: 0 additions & 49 deletions sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
- [GetDataPlaneAccess](#factories_getdataplaneaccess)
- [GetGitHubAccessToken](#factories_getgithubaccesstoken)
- [List](#factories_list)
- [ListByResourceGroup](#factories_listbyresourcegroup)
- [Update](#factories_update)

## GlobalParameters
Expand Down Expand Up @@ -121,10 +120,6 @@
- [Get](#managedvirtualnetworks_get)
- [ListByFactory](#managedvirtualnetworks_listbyfactory)

## Operations

- [List](#operations_list)

## PipelineRuns

- [Cancel](#pipelineruns_cancel)
Expand Down Expand Up @@ -1352,28 +1347,6 @@ public final class FactoriesListSamples {
}
```

### Factories_ListByResourceGroup

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

### Factories_Update

```java
Expand Down Expand Up @@ -2469,28 +2442,6 @@ public final class ManagedVirtualNetworksListByFactorySamples {
}
```

### Operations_List

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

### PipelineRuns_Cancel

```java
Expand Down
17 changes: 6 additions & 11 deletions sdk/datafactory/azure-resourcemanager-datafactory/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,9 @@
<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>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-json</artifactId>
<version>1.3.0</version> <!-- {x-version-update;com.azure:azure-json;dependency} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core</artifactId>
Expand All @@ -63,17 +59,16 @@
<artifactId>azure-core-management</artifactId>
<version>1.15.4</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-json</artifactId>
<version>1.3.0</version> <!-- {x-version-update;com.azure:azure-json;dependency} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-test</artifactId>
<version>1.27.0-beta.2</version> <!-- {x-version-update;com.azure:azure-core-test;dependency} -->
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>com.azure</groupId>
<artifactId>azure-core-http-jdk-httpclient</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.azure</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
Expand Down Expand Up @@ -40,11 +40,10 @@
import com.azure.resourcemanager.datafactory.implementation.LinkedServicesImpl;
import com.azure.resourcemanager.datafactory.implementation.ManagedPrivateEndpointsImpl;
import com.azure.resourcemanager.datafactory.implementation.ManagedVirtualNetworksImpl;
import com.azure.resourcemanager.datafactory.implementation.OperationsImpl;
import com.azure.resourcemanager.datafactory.implementation.PipelineRunsImpl;
import com.azure.resourcemanager.datafactory.implementation.PipelinesImpl;
import com.azure.resourcemanager.datafactory.implementation.PrivateEndpointConnectionOperationsImpl;
import com.azure.resourcemanager.datafactory.implementation.PrivateEndPointConnectionsImpl;
import com.azure.resourcemanager.datafactory.implementation.PrivateEndpointConnectionOperationsImpl;
import com.azure.resourcemanager.datafactory.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.datafactory.implementation.TriggerRunsImpl;
import com.azure.resourcemanager.datafactory.implementation.TriggersImpl;
Expand All @@ -63,11 +62,10 @@
import com.azure.resourcemanager.datafactory.models.LinkedServices;
import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoints;
import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworks;
import com.azure.resourcemanager.datafactory.models.Operations;
import com.azure.resourcemanager.datafactory.models.PipelineRuns;
import com.azure.resourcemanager.datafactory.models.Pipelines;
import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionOperations;
import com.azure.resourcemanager.datafactory.models.PrivateEndPointConnections;
import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionOperations;
import com.azure.resourcemanager.datafactory.models.PrivateLinkResources;
import com.azure.resourcemanager.datafactory.models.TriggerRuns;
import com.azure.resourcemanager.datafactory.models.Triggers;
Expand All @@ -84,8 +82,6 @@
* V2 services.
*/
public final class DataFactoryManager {
private Operations operations;

private Factories factories;

private ExposureControls exposureControls;
Expand Down Expand Up @@ -294,7 +290,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.datafactory")
.append("/")
.append("1.0.0-beta.30");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
Expand Down Expand Up @@ -340,18 +336,6 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
}
}

/**
* Gets the resource collection API of Operations.
*
* @return Resource collection API of Operations.
*/
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
return operations;
}

/**
* Gets the resource collection API of Factories. It manages Factory.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ public interface DataFactoryManagementClient {
*/
Duration getDefaultPollInterval();

/**
* Gets the OperationsClient object to access its operations.
*
* @return the OperationsClient object.
*/
OperationsClient getOperations();

/**
* Gets the FactoriesClient object to access its operations.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,31 +71,6 @@ Response<FactoryInner> configureFactoryRepoWithResponse(String locationId, Facto
@ServiceMethod(returns = ReturnType.SINGLE)
FactoryInner configureFactoryRepo(String locationId, FactoryRepoUpdate factoryRepoUpdate);

/**
* Lists factories.
*
* @param resourceGroupName The resource group name.
* @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> listByResourceGroup(String resourceGroupName);

/**
* Lists factories.
*
* @param resourceGroupName The resource group name.
* @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> listByResourceGroup(String resourceGroupName, Context context);

/**
* Creates or updates a factory.
*
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@ public AmazonRdsForSqlServerLinkedServiceTypeProperties withPooling(Object pooli
*/
@Override
public void validate() {
super.validate();
if (password() != null) {
password().validate();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,6 @@ public AzureSqlDWLinkedServiceTypeProperties withPooling(Object pooling) {
*/
@Override
public void validate() {
super.validate();
if (password() != null) {
password().validate();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,6 @@ public AzureSqlDatabaseLinkedServiceTypeProperties withPooling(Object pooling) {
*/
@Override
public void validate() {
super.validate();
if (password() != null) {
password().validate();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,6 @@ public AzureSqlMILinkedServiceTypeProperties withPooling(Object pooling) {
*/
@Override
public void validate() {
super.validate();
if (password() != null) {
password().validate();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,15 @@ public AzureTableStorageLinkedServiceTypeProperties withEncryptedCredential(Stri
*/
@Override
public void validate() {
super.validate();
if (credential() != null) {
credential().validate();
}
if (accountKey() != null) {
accountKey().validate();
}
if (sasToken() != null) {
sasToken().validate();
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
Expand Down Expand Up @@ -172,7 +173,6 @@ public ExecutePowerQueryActivityTypeProperties withSourceStagingConcurrency(Obje
*/
@Override
public void validate() {
super.validate();
if (sinks() != null) {
sinks().values().forEach(e -> {
if (e != null) {
Expand All @@ -183,8 +183,29 @@ public void validate() {
if (queries() != null) {
queries().forEach(e -> e.validate());
}
if (dataFlow() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
"Missing required property dataFlow in model ExecutePowerQueryActivityTypeProperties"));
} else {
dataFlow().validate();
}
if (staging() != null) {
staging().validate();
}
if (integrationRuntime() != null) {
integrationRuntime().validate();
}
if (continuationSettings() != null) {
continuationSettings().validate();
}
if (compute() != null) {
compute().validate();
}
}

private static final ClientLogger LOGGER = new ClientLogger(ExecutePowerQueryActivityTypeProperties.class);

/**
* {@inheritDoc}
*/
Expand Down
Loading

0 comments on commit 3695e58

Please sign in to comment.