From 4368db5c6f08cfc7d331dd0c4893978b0200b5ed Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 8 Oct 2021 08:55:51 +0000 Subject: [PATCH] CodeGen from PR 16320 in Azure/azure-rest-api-specs Merge c79b3639b720b804aba14f7c2036bfbcf164aac7 into 49526d1a30dc4ba2f77e172c54c4ef7d8f53a8d1 --- .../CHANGELOG.md | 4 +++- .../README.md | 2 +- .../fluent/CustomLocationsClient.java | 8 ++++---- .../CustomLocationsClientImpl.java | 16 ++++++++-------- 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/sdk/extendedlocation/azure-resourcemanager-extendedlocation/CHANGELOG.md b/sdk/extendedlocation/azure-resourcemanager-extendedlocation/CHANGELOG.md index dbc32924d120..985f164baa13 100644 --- a/sdk/extendedlocation/azure-resourcemanager-extendedlocation/CHANGELOG.md +++ b/sdk/extendedlocation/azure-resourcemanager-extendedlocation/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0-beta.1 (2021-10-08) + +- Azure Resource Manager CustomLocations client library for Java. This package contains Microsoft Azure SDK for CustomLocations Management SDK. The customLocations Rest API spec. Package tag package-2021-08-15. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/extendedlocation/azure-resourcemanager-extendedlocation/README.md b/sdk/extendedlocation/azure-resourcemanager-extendedlocation/README.md index f0c3b82aeabd..cff2ebf60fdc 100644 --- a/sdk/extendedlocation/azure-resourcemanager-extendedlocation/README.md +++ b/sdk/extendedlocation/azure-resourcemanager-extendedlocation/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-extendedlocation - 1.0.0-beta.1 + 1.0.0-beta.2 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/extendedlocation/azure-resourcemanager-extendedlocation/src/main/java/com/azure/resourcemanager/extendedlocation/fluent/CustomLocationsClient.java b/sdk/extendedlocation/azure-resourcemanager-extendedlocation/src/main/java/com/azure/resourcemanager/extendedlocation/fluent/CustomLocationsClient.java index 25036a4298f6..d69be82bdd4c 100644 --- a/sdk/extendedlocation/azure-resourcemanager-extendedlocation/src/main/java/com/azure/resourcemanager/extendedlocation/fluent/CustomLocationsClient.java +++ b/sdk/extendedlocation/azure-resourcemanager-extendedlocation/src/main/java/com/azure/resourcemanager/extendedlocation/fluent/CustomLocationsClient.java @@ -130,7 +130,7 @@ Response getByResourceGroupWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return custom Locations definition. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CustomLocationInner> beginCreateOrUpdate( String resourceGroupName, String resourceName, CustomLocationInner parameters); @@ -146,7 +146,7 @@ SyncPoller, CustomLocationInner> beginCreateOrUp * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return custom Locations definition. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CustomLocationInner> beginCreateOrUpdate( String resourceGroupName, String resourceName, CustomLocationInner parameters, Context context); @@ -190,7 +190,7 @@ CustomLocationInner createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName); /** @@ -204,7 +204,7 @@ CustomLocationInner createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, Context context); /** diff --git a/sdk/extendedlocation/azure-resourcemanager-extendedlocation/src/main/java/com/azure/resourcemanager/extendedlocation/implementation/CustomLocationsClientImpl.java b/sdk/extendedlocation/azure-resourcemanager-extendedlocation/src/main/java/com/azure/resourcemanager/extendedlocation/implementation/CustomLocationsClientImpl.java index da27ca9a7b67..a395c7353737 100644 --- a/sdk/extendedlocation/azure-resourcemanager-extendedlocation/src/main/java/com/azure/resourcemanager/extendedlocation/implementation/CustomLocationsClientImpl.java +++ b/sdk/extendedlocation/azure-resourcemanager-extendedlocation/src/main/java/com/azure/resourcemanager/extendedlocation/implementation/CustomLocationsClientImpl.java @@ -929,7 +929,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return custom Locations definition. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CustomLocationInner> beginCreateOrUpdateAsync( String resourceGroupName, String resourceName, CustomLocationInner parameters) { Mono>> mono = @@ -956,7 +956,7 @@ private PollerFlux, CustomLocationInner> beginCr * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return custom Locations definition. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CustomLocationInner> beginCreateOrUpdateAsync( String resourceGroupName, String resourceName, CustomLocationInner parameters, Context context) { context = this.client.mergeContext(context); @@ -979,7 +979,7 @@ private PollerFlux, CustomLocationInner> beginCr * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return custom Locations definition. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CustomLocationInner> beginCreateOrUpdate( String resourceGroupName, String resourceName, CustomLocationInner parameters) { return beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters).getSyncPoller(); @@ -997,7 +997,7 @@ public SyncPoller, CustomLocationInner> beginCre * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return custom Locations definition. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CustomLocationInner> beginCreateOrUpdate( String resourceGroupName, String resourceName, CustomLocationInner parameters, Context context) { return beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters, context).getSyncPoller(); @@ -1180,7 +1180,7 @@ private Mono>> deleteWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName); return this @@ -1199,7 +1199,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String resourceName, Context context) { context = this.client.mergeContext(context); @@ -1219,7 +1219,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName) { return beginDeleteAsync(resourceGroupName, resourceName).getSyncPoller(); } @@ -1235,7 +1235,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String resourceName, Context context) { return beginDeleteAsync(resourceGroupName, resourceName, context).getSyncPoller();