Skip to content

Commit

Permalink
CodeGen from PR 21643 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 0f20935eef0448bb02566b44d5b09cce777c2341 into c3daf5a8d294e2cfe91307286d7c58f6311b4c89
  • Loading branch information
SDKAuto committed Feb 16, 2023
1 parent d7d97c6 commit fc10f50
Show file tree
Hide file tree
Showing 95 changed files with 722 additions and 2,729 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.2.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2023-02-16)

- Azure Resource Manager AzureDigitalTwins client library for Java. This package contains Microsoft Azure SDK for AzureDigitalTwins Management SDK. Azure Digital Twins Client for managing DigitalTwinsInstance. Package tag package-2023-01. 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
4 changes: 2 additions & 2 deletions sdk/digitaltwins/azure-resourcemanager-digitaltwins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager AzureDigitalTwins client library for Java.

This package contains Microsoft Azure SDK for AzureDigitalTwins Management SDK. Azure Digital Twins Client for managing DigitalTwinsInstance. Package tag package-2022-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for AzureDigitalTwins Management SDK. Azure Digital Twins Client for managing DigitalTwinsInstance. Package tag package-2023-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-digitaltwins</artifactId>
<version>1.1.0</version>
<version>1.2.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
192 changes: 93 additions & 99 deletions sdk/digitaltwins/azure-resourcemanager-digitaltwins/SAMPLE.md

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions sdk/digitaltwins/azure-resourcemanager-digitaltwins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for AzureDigitalTwins Management</name>
<description>This package contains Microsoft Azure SDK for AzureDigitalTwins Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Digital Twins Client for managing DigitalTwinsInstance. Package tag package-2022-10.</description>
<description>This package contains Microsoft Azure SDK for AzureDigitalTwins Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Digital Twins Client for managing DigitalTwinsInstance. Package tag package-2023-01.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -39,9 +39,6 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.skip>true</jacoco.skip>
<javaModulesSurefireArgLine>
--add-exports com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED
</javaModulesSurefireArgLine>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public AzureDigitalTwinsManager authenticate(TokenCredential credential, AzurePr
.append("-")
.append("com.azure.resourcemanager.digitaltwins")
.append("/")
.append("1.1.0");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.digitaltwins.fluent.models.TimeSeriesDatabaseConnectionInner;
import com.azure.resourcemanager.digitaltwins.models.CleanupConnectionArtifacts;

/** An instance of this class provides access to all the operations defined in TimeSeriesDatabaseConnectionsClient. */
public interface TimeSeriesDatabaseConnectionsClient {
Expand Down Expand Up @@ -177,6 +178,9 @@ SyncPoller<PollResult<TimeSeriesDatabaseConnectionInner>, TimeSeriesDatabaseConn
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
* @param resourceName The name of the DigitalTwinsInstance.
* @param timeSeriesDatabaseConnectionName Name of time series database connection.
* @param cleanupConnectionArtifacts Specifies whether or not to attempt to clean up artifacts that were created in
* order to establish a connection to the time series database. This is a best-effort attempt that will fail if
* appropriate permissions are not in place. Setting this to 'true' does not delete any recorded data.
* @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.
Expand All @@ -185,7 +189,11 @@ SyncPoller<PollResult<TimeSeriesDatabaseConnectionInner>, TimeSeriesDatabaseConn
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<TimeSeriesDatabaseConnectionInner>, TimeSeriesDatabaseConnectionInner> beginDelete(
String resourceGroupName, String resourceName, String timeSeriesDatabaseConnectionName, Context context);
String resourceGroupName,
String resourceName,
String timeSeriesDatabaseConnectionName,
CleanupConnectionArtifacts cleanupConnectionArtifacts,
Context context);

/**
* Delete a time series database connection.
Expand All @@ -208,6 +216,9 @@ TimeSeriesDatabaseConnectionInner delete(
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
* @param resourceName The name of the DigitalTwinsInstance.
* @param timeSeriesDatabaseConnectionName Name of time series database connection.
* @param cleanupConnectionArtifacts Specifies whether or not to attempt to clean up artifacts that were created in
* order to establish a connection to the time series database. This is a best-effort attempt that will fail if
* appropriate permissions are not in place. Setting this to 'true' does not delete any recorded data.
* @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.
Expand All @@ -216,5 +227,9 @@ TimeSeriesDatabaseConnectionInner delete(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
TimeSeriesDatabaseConnectionInner delete(
String resourceGroupName, String resourceName, String timeSeriesDatabaseConnectionName, Context context);
String resourceGroupName,
String resourceName,
String timeSeriesDatabaseConnectionName,
CleanupConnectionArtifacts cleanupConnectionArtifacts,
Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public TimeSeriesDatabaseConnectionsClient getTimeSeriesDatabaseConnections() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
this.apiVersion = "2022-10-31";
this.apiVersion = "2023-01-31";
this.digitalTwins = new DigitalTwinsClientImpl(this);
this.digitalTwinsEndpoints = new DigitalTwinsEndpointsClientImpl(this);
this.operations = new OperationsClientImpl(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ private PollerFlux<PollResult<DigitalTwinsDescriptionInner>, DigitalTwinsDescrip
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<PollResult<DigitalTwinsDescriptionInner>, DigitalTwinsDescriptionInner> beginCreateOrUpdate(
String resourceGroupName, String resourceName, DigitalTwinsDescriptionInner digitalTwinsCreate) {
return beginCreateOrUpdateAsync(resourceGroupName, resourceName, digitalTwinsCreate).getSyncPoller();
return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, digitalTwinsCreate).getSyncPoller();
}

/**
Expand All @@ -553,7 +553,9 @@ public SyncPoller<PollResult<DigitalTwinsDescriptionInner>, DigitalTwinsDescript
String resourceName,
DigitalTwinsDescriptionInner digitalTwinsCreate,
Context context) {
return beginCreateOrUpdateAsync(resourceGroupName, resourceName, digitalTwinsCreate, context).getSyncPoller();
return this
.beginCreateOrUpdateAsync(resourceGroupName, resourceName, digitalTwinsCreate, context)
.getSyncPoller();
}

/**
Expand Down Expand Up @@ -834,7 +836,7 @@ private PollerFlux<PollResult<DigitalTwinsDescriptionInner>, DigitalTwinsDescrip
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<PollResult<DigitalTwinsDescriptionInner>, DigitalTwinsDescriptionInner> beginUpdate(
String resourceGroupName, String resourceName, DigitalTwinsPatchDescription digitalTwinsPatchDescription) {
return beginUpdateAsync(resourceGroupName, resourceName, digitalTwinsPatchDescription).getSyncPoller();
return this.beginUpdateAsync(resourceGroupName, resourceName, digitalTwinsPatchDescription).getSyncPoller();
}

/**
Expand All @@ -855,7 +857,9 @@ public SyncPoller<PollResult<DigitalTwinsDescriptionInner>, DigitalTwinsDescript
String resourceName,
DigitalTwinsPatchDescription digitalTwinsPatchDescription,
Context context) {
return beginUpdateAsync(resourceGroupName, resourceName, digitalTwinsPatchDescription, context).getSyncPoller();
return this
.beginUpdateAsync(resourceGroupName, resourceName, digitalTwinsPatchDescription, context)
.getSyncPoller();
}

/**
Expand Down Expand Up @@ -1096,7 +1100,7 @@ private PollerFlux<PollResult<DigitalTwinsDescriptionInner>, DigitalTwinsDescrip
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<PollResult<DigitalTwinsDescriptionInner>, DigitalTwinsDescriptionInner> beginDelete(
String resourceGroupName, String resourceName) {
return beginDeleteAsync(resourceGroupName, resourceName).getSyncPoller();
return this.beginDeleteAsync(resourceGroupName, resourceName).getSyncPoller();
}

/**
Expand All @@ -1113,7 +1117,7 @@ public SyncPoller<PollResult<DigitalTwinsDescriptionInner>, DigitalTwinsDescript
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<PollResult<DigitalTwinsDescriptionInner>, DigitalTwinsDescriptionInner> beginDelete(
String resourceGroupName, String resourceName, Context context) {
return beginDeleteAsync(resourceGroupName, resourceName, context).getSyncPoller();
return this.beginDeleteAsync(resourceGroupName, resourceName, context).getSyncPoller();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,8 @@ private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(
String resourceName,
String endpointName,
DigitalTwinsEndpointResourceInner endpointDescription) {
return beginCreateOrUpdateAsync(resourceGroupName, resourceName, endpointName, endpointDescription)
return this
.beginCreateOrUpdateAsync(resourceGroupName, resourceName, endpointName, endpointDescription)
.getSyncPoller();
}

Expand All @@ -714,7 +715,8 @@ private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(
String endpointName,
DigitalTwinsEndpointResourceInner endpointDescription,
Context context) {
return beginCreateOrUpdateAsync(resourceGroupName, resourceName, endpointName, endpointDescription, context)
return this
.beginCreateOrUpdateAsync(resourceGroupName, resourceName, endpointName, endpointDescription, context)
.getSyncPoller();
}

Expand Down Expand Up @@ -983,7 +985,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<PollResult<DigitalTwinsEndpointResourceInner>, DigitalTwinsEndpointResourceInner> beginDelete(
String resourceGroupName, String resourceName, String endpointName) {
return beginDeleteAsync(resourceGroupName, resourceName, endpointName).getSyncPoller();
return this.beginDeleteAsync(resourceGroupName, resourceName, endpointName).getSyncPoller();
}

/**
Expand All @@ -1001,7 +1003,7 @@ public SyncPoller<PollResult<DigitalTwinsEndpointResourceInner>, DigitalTwinsEnd
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<PollResult<DigitalTwinsEndpointResourceInner>, DigitalTwinsEndpointResourceInner> beginDelete(
String resourceGroupName, String resourceName, String endpointName, Context context) {
return beginDeleteAsync(resourceGroupName, resourceName, endpointName, context).getSyncPoller();
return this.beginDeleteAsync(resourceGroupName, resourceName, endpointName, context).getSyncPoller();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ private PollerFlux<PollResult<Void>, Void> beginDeleteAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String resourceName, String privateEndpointConnectionName) {
return beginDeleteAsync(resourceGroupName, resourceName, privateEndpointConnectionName).getSyncPoller();
return this.beginDeleteAsync(resourceGroupName, resourceName, privateEndpointConnectionName).getSyncPoller();
}

/**
Expand All @@ -623,7 +623,8 @@ public SyncPoller<PollResult<Void>, Void> beginDelete(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context) {
return beginDeleteAsync(resourceGroupName, resourceName, privateEndpointConnectionName, context)
return this
.beginDeleteAsync(resourceGroupName, resourceName, privateEndpointConnectionName, context)
.getSyncPoller();
}

Expand Down Expand Up @@ -922,7 +923,8 @@ public SyncPoller<PollResult<PrivateEndpointConnectionInner>, PrivateEndpointCon
String resourceName,
String privateEndpointConnectionName,
PrivateEndpointConnectionInner privateEndpointConnection) {
return beginCreateOrUpdateAsync(
return this
.beginCreateOrUpdateAsync(
resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection)
.getSyncPoller();
}
Expand All @@ -947,7 +949,8 @@ public SyncPoller<PollResult<PrivateEndpointConnectionInner>, PrivateEndpointCon
String privateEndpointConnectionName,
PrivateEndpointConnectionInner privateEndpointConnection,
Context context) {
return beginCreateOrUpdateAsync(
return this
.beginCreateOrUpdateAsync(
resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, context)
.getSyncPoller();
}
Expand Down
Loading

0 comments on commit fc10f50

Please sign in to comment.