Skip to content

Commit e8ce3de

Browse files
author
SDKAuto
committed
CodeGen from PR 17790 in Azure/azure-rest-api-specs
Merge 585854319ec0573ee66e6e112ce6c5995ccb3d15 into 25a8355d4094595edf9b58b13e8c95b0b0c9c50c
1 parent 9b38787 commit e8ce3de

39 files changed

+406
-353
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.3 (Unreleased)
3+
## 1.0.0-beta.1 (2022-02-11)
4+
5+
- Azure Resource Manager WebPubSub client library for Java. This package contains Microsoft Azure SDK for WebPubSub Management SDK. REST API for Azure WebPubSub Service. Package tag package-2021-10-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
46

57
### Features Added
68

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

Lines changed: 1 addition & 1 deletion
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-webpubsub</artifactId>
35-
<version>1.0.0-beta.2</version>
35+
<version>1.0.0-beta.3</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/WebPubSubManager.java

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.azure.core.http.HttpClient;
99
import com.azure.core.http.HttpPipeline;
1010
import com.azure.core.http.HttpPipelineBuilder;
11+
import com.azure.core.http.HttpPipelinePosition;
1112
import com.azure.core.http.policy.AddDatePolicy;
1213
import com.azure.core.http.policy.HttpLogOptions;
1314
import com.azure.core.http.policy.HttpLoggingPolicy;
@@ -41,6 +42,7 @@
4142
import java.util.ArrayList;
4243
import java.util.List;
4344
import java.util.Objects;
45+
import java.util.stream.Collectors;
4446

4547
/** Entry point to WebPubSubManager. REST API for Azure WebPubSub Service. */
4648
public final class WebPubSubManager {
@@ -194,7 +196,7 @@ public WebPubSubManager authenticate(TokenCredential credential, AzureProfile pr
194196
.append("-")
195197
.append("com.azure.resourcemanager.webpubsub")
196198
.append("/")
197-
.append("1.0.0-beta.2");
199+
.append("1.0.0-beta.1");
198200
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
199201
userAgentBuilder
200202
.append(" (")
@@ -217,11 +219,24 @@ public WebPubSubManager authenticate(TokenCredential credential, AzureProfile pr
217219
List<HttpPipelinePolicy> policies = new ArrayList<>();
218220
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
219221
policies.add(new RequestIdPolicy());
222+
policies
223+
.addAll(
224+
this
225+
.policies
226+
.stream()
227+
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
228+
.collect(Collectors.toList()));
220229
HttpPolicyProviders.addBeforeRetryPolicies(policies);
221230
policies.add(retryPolicy);
222231
policies.add(new AddDatePolicy());
223232
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
224-
policies.addAll(this.policies);
233+
policies
234+
.addAll(
235+
this
236+
.policies
237+
.stream()
238+
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
239+
.collect(Collectors.toList()));
225240
HttpPolicyProviders.addAfterRetryPolicies(policies);
226241
policies.add(new HttpLoggingPolicy(httpLogOptions));
227242
HttpPipeline httpPipeline =

sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubHubsClient.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.azure.core.util.Context;
1313
import com.azure.core.util.polling.SyncPoller;
1414
import com.azure.resourcemanager.webpubsub.fluent.models.WebPubSubHubInner;
15+
import reactor.core.publisher.Mono;
1516

1617
/** An instance of this class provides access to all the operations defined in WebPubSubHubsClient. */
1718
public interface WebPubSubHubsClient {
@@ -70,7 +71,7 @@ public interface WebPubSubHubsClient {
7071
* @throws IllegalArgumentException thrown if parameters fail the validation.
7172
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
7273
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
73-
* @return a hub setting.
74+
* @return a hub setting along with {@link Response}.
7475
*/
7576
@ServiceMethod(returns = ReturnType.SINGLE)
7677
Response<WebPubSubHubInner> getWithResponse(
@@ -87,7 +88,7 @@ Response<WebPubSubHubInner> getWithResponse(
8788
* @throws IllegalArgumentException thrown if parameters fail the validation.
8889
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
8990
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
90-
* @return a hub setting.
91+
* @return a hub setting along with {@link Response} on successful completion of {@link Mono}.
9192
*/
9293
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
9394
SyncPoller<PollResult<WebPubSubHubInner>, WebPubSubHubInner> beginCreateOrUpdate(
@@ -105,7 +106,7 @@ SyncPoller<PollResult<WebPubSubHubInner>, WebPubSubHubInner> beginCreateOrUpdate
105106
* @throws IllegalArgumentException thrown if parameters fail the validation.
106107
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
107108
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
108-
* @return a hub setting.
109+
* @return a hub setting along with {@link Response} on successful completion of {@link Mono}.
109110
*/
110111
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
111112
SyncPoller<PollResult<WebPubSubHubInner>, WebPubSubHubInner> beginCreateOrUpdate(
@@ -156,7 +157,7 @@ WebPubSubHubInner createOrUpdate(
156157
* @throws IllegalArgumentException thrown if parameters fail the validation.
157158
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
158159
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
159-
* @return the completion.
160+
* @return the {@link Response} on successful completion of {@link Mono}.
160161
*/
161162
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
162163
SyncPoller<PollResult<Void>, Void> beginDelete(String hubName, String resourceGroupName, String resourceName);
@@ -172,7 +173,7 @@ WebPubSubHubInner createOrUpdate(
172173
* @throws IllegalArgumentException thrown if parameters fail the validation.
173174
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
174175
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
175-
* @return the completion.
176+
* @return the {@link Response} on successful completion of {@link Mono}.
176177
*/
177178
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
178179
SyncPoller<PollResult<Void>, Void> beginDelete(

sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubPrivateEndpointConnectionsClient.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.azure.core.util.Context;
1313
import com.azure.core.util.polling.SyncPoller;
1414
import com.azure.resourcemanager.webpubsub.fluent.models.PrivateEndpointConnectionInner;
15+
import reactor.core.publisher.Mono;
1516

1617
/**
1718
* An instance of this class provides access to all the operations defined in WebPubSubPrivateEndpointConnectionsClient.
@@ -73,7 +74,7 @@ PrivateEndpointConnectionInner get(
7374
* @throws IllegalArgumentException thrown if parameters fail the validation.
7475
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
7576
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
76-
* @return the specified private endpoint connection.
77+
* @return the specified private endpoint connection along with {@link Response}.
7778
*/
7879
@ServiceMethod(returns = ReturnType.SINGLE)
7980
Response<PrivateEndpointConnectionInner> getWithResponse(
@@ -111,7 +112,7 @@ PrivateEndpointConnectionInner update(
111112
* @throws IllegalArgumentException thrown if parameters fail the validation.
112113
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
113114
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
114-
* @return a private endpoint connection to an azure resource.
115+
* @return a private endpoint connection to an azure resource along with {@link Response}.
115116
*/
116117
@ServiceMethod(returns = ReturnType.SINGLE)
117118
Response<PrivateEndpointConnectionInner> updateWithResponse(
@@ -131,7 +132,7 @@ Response<PrivateEndpointConnectionInner> updateWithResponse(
131132
* @throws IllegalArgumentException thrown if parameters fail the validation.
132133
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
133134
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
134-
* @return the completion.
135+
* @return the {@link Response} on successful completion of {@link Mono}.
135136
*/
136137
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
137138
SyncPoller<PollResult<Void>, Void> beginDelete(
@@ -148,7 +149,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
148149
* @throws IllegalArgumentException thrown if parameters fail the validation.
149150
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
150151
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
151-
* @return the completion.
152+
* @return the {@link Response} on successful completion of {@link Mono}.
152153
*/
153154
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
154155
SyncPoller<PollResult<Void>, Void> beginDelete(

sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubSharedPrivateLinkResourcesClient.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.azure.core.util.Context;
1313
import com.azure.core.util.polling.SyncPoller;
1414
import com.azure.resourcemanager.webpubsub.fluent.models.SharedPrivateLinkResourceInner;
15+
import reactor.core.publisher.Mono;
1516

1617
/**
1718
* An instance of this class provides access to all the operations defined in WebPubSubSharedPrivateLinkResourcesClient.
@@ -73,7 +74,7 @@ SharedPrivateLinkResourceInner get(
7374
* @throws IllegalArgumentException thrown if parameters fail the validation.
7475
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
7576
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
76-
* @return the specified shared private link resource.
77+
* @return the specified shared private link resource along with {@link Response}.
7778
*/
7879
@ServiceMethod(returns = ReturnType.SINGLE)
7980
Response<SharedPrivateLinkResourceInner> getWithResponse(
@@ -90,7 +91,8 @@ Response<SharedPrivateLinkResourceInner> getWithResponse(
9091
* @throws IllegalArgumentException thrown if parameters fail the validation.
9192
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
9293
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
93-
* @return describes a Shared Private Link Resource.
94+
* @return describes a Shared Private Link Resource along with {@link Response} on successful completion of {@link
95+
* Mono}.
9496
*/
9597
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
9698
SyncPoller<PollResult<SharedPrivateLinkResourceInner>, SharedPrivateLinkResourceInner> beginCreateOrUpdate(
@@ -111,7 +113,8 @@ SyncPoller<PollResult<SharedPrivateLinkResourceInner>, SharedPrivateLinkResource
111113
* @throws IllegalArgumentException thrown if parameters fail the validation.
112114
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
113115
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
114-
* @return describes a Shared Private Link Resource.
116+
* @return describes a Shared Private Link Resource along with {@link Response} on successful completion of {@link
117+
* Mono}.
115118
*/
116119
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
117120
SyncPoller<PollResult<SharedPrivateLinkResourceInner>, SharedPrivateLinkResourceInner> beginCreateOrUpdate(
@@ -173,7 +176,7 @@ SharedPrivateLinkResourceInner createOrUpdate(
173176
* @throws IllegalArgumentException thrown if parameters fail the validation.
174177
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
175178
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
176-
* @return the completion.
179+
* @return the {@link Response} on successful completion of {@link Mono}.
177180
*/
178181
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
179182
SyncPoller<PollResult<Void>, Void> beginDelete(
@@ -190,7 +193,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
190193
* @throws IllegalArgumentException thrown if parameters fail the validation.
191194
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
192195
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
193-
* @return the completion.
196+
* @return the {@link Response} on successful completion of {@link Mono}.
194197
*/
195198
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
196199
SyncPoller<PollResult<Void>, Void> beginDelete(

0 commit comments

Comments
 (0)