diff --git a/eng/jacoco-test-coverage/pom.xml b/eng/jacoco-test-coverage/pom.xml
index ae60e96836c5b..c966398596186 100644
--- a/eng/jacoco-test-coverage/pom.xml
+++ b/eng/jacoco-test-coverage/pom.xml
@@ -234,7 +234,7 @@
com.azure
azure-messaging-webpubsub
- 1.0.0-beta.7
+ 1.0.0
com.azure
diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 9ecaecb1e18d3..9ff73cfa2795b 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -100,7 +100,7 @@ com.azure:azure-messaging-eventhubs-track2-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-messaging-servicebus;7.5.0;7.6.0-beta.1
com.azure:azure-messaging-servicebus-track1-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-messaging-servicebus-track2-perf;1.0.0-beta.1;1.0.0-beta.1
-com.azure:azure-messaging-webpubsub;1.0.0-beta.6;1.0.0-beta.7
+com.azure:azure-messaging-webpubsub;1.0.0-beta.6;1.0.0
com.azure:azure-mixedreality-authentication;1.1.3;1.2.0-beta.1
com.azure:azure-mixedreality-remoterendering;1.1.2;1.2.0-beta.1
com.azure:azure-monitor-opentelemetry-exporter;1.0.0-beta.5;1.0.0-beta.6
diff --git a/sdk/webpubsub/azure-messaging-webpubsub/CHANGELOG.md b/sdk/webpubsub/azure-messaging-webpubsub/CHANGELOG.md
index 2be7a6e73d01a..33211a42eac42 100644
--- a/sdk/webpubsub/azure-messaging-webpubsub/CHANGELOG.md
+++ b/sdk/webpubsub/azure-messaging-webpubsub/CHANGELOG.md
@@ -1,15 +1,17 @@
# Release History
-## 1.0.0-beta.7 (Unreleased)
-
-### Features Added
+## 1.0.0 (2021-11-23)
### Breaking Changes
-### Bugs Fixed
+- `setErrorOptions` is removed from `RequestOptions` in `azure-core`.
### Other Changes
+#### Dependency Updates
+
+- Upgraded `azure-core` to `1.23.0`.
+
## 1.0.0-beta.6 (2021-11-11)
### Breaking Changes
diff --git a/sdk/webpubsub/azure-messaging-webpubsub/README.md b/sdk/webpubsub/azure-messaging-webpubsub/README.md
index ede1579b5bcaf..afb6a962bef8a 100644
--- a/sdk/webpubsub/azure-messaging-webpubsub/README.md
+++ b/sdk/webpubsub/azure-messaging-webpubsub/README.md
@@ -32,7 +32,7 @@ Details about the terms used here are described in [Key concepts](#key-concepts)
com.azure
azure-messaging-webpubsub
- 1.0.0-beta.6
+ 1.0.0
```
diff --git a/sdk/webpubsub/azure-messaging-webpubsub/pom.xml b/sdk/webpubsub/azure-messaging-webpubsub/pom.xml
index 945ac25ea5727..5fdc59ffc2e34 100644
--- a/sdk/webpubsub/azure-messaging-webpubsub/pom.xml
+++ b/sdk/webpubsub/azure-messaging-webpubsub/pom.xml
@@ -13,7 +13,7 @@
com.azure
azure-messaging-webpubsub
- 1.0.0-beta.7
+ 1.0.0
Microsoft Azure client library for Azure Web Pub Sub Service
This package contains the Microsoft Azure Web Pub Sub library.
diff --git a/sdk/webpubsub/azure-messaging-webpubsub/src/main/java/com/azure/messaging/webpubsub/WebPubSubServiceClientBuilder.java b/sdk/webpubsub/azure-messaging-webpubsub/src/main/java/com/azure/messaging/webpubsub/WebPubSubServiceClientBuilder.java
index 8aceba07dbbbe..214498e053484 100644
--- a/sdk/webpubsub/azure-messaging-webpubsub/src/main/java/com/azure/messaging/webpubsub/WebPubSubServiceClientBuilder.java
+++ b/sdk/webpubsub/azure-messaging-webpubsub/src/main/java/com/azure/messaging/webpubsub/WebPubSubServiceClientBuilder.java
@@ -25,7 +25,7 @@
import com.azure.core.util.CoreUtils;
import com.azure.core.util.UrlBuilder;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.messaging.webpubsub.implementation.AzureWebPubSubServiceRestAPIImpl;
+import com.azure.messaging.webpubsub.implementation.AzureWebPubSubServiceRestApiImpl;
import java.net.MalformedURLException;
import java.net.URL;
@@ -322,7 +322,7 @@ public WebPubSubServiceClientBuilder serviceVersion(final WebPubSubServiceVersio
}
- private AzureWebPubSubServiceRestAPIImpl buildInnerClient() {
+ private AzureWebPubSubServiceRestApiImpl buildInnerClient() {
if (hub == null || hub.isEmpty()) {
logger.logThrowableAsError(
new IllegalStateException("hub is not valid - it must be non-null and non-empty."));
@@ -365,7 +365,7 @@ private AzureWebPubSubServiceRestAPIImpl buildInnerClient() {
if (pipeline != null) {
- return new AzureWebPubSubServiceRestAPIImpl(pipeline, endpoint, serviceVersion);
+ return new AzureWebPubSubServiceRestApiImpl(pipeline, endpoint, serviceVersion);
}
// Global Env configuration store
@@ -415,7 +415,7 @@ private AzureWebPubSubServiceRestAPIImpl buildInnerClient() {
.policies(policies.toArray(new HttpPipelinePolicy[0]))
.httpClient(httpClient)
.build();
- return new AzureWebPubSubServiceRestAPIImpl(buildPipeline, endpoint, serviceVersion);
+ return new AzureWebPubSubServiceRestApiImpl(buildPipeline, endpoint, serviceVersion);
}
diff --git a/sdk/webpubsub/azure-messaging-webpubsub/src/main/java/com/azure/messaging/webpubsub/implementation/AzureWebPubSubServiceRestAPIImpl.java b/sdk/webpubsub/azure-messaging-webpubsub/src/main/java/com/azure/messaging/webpubsub/implementation/AzureWebPubSubServiceRestApiImpl.java
similarity index 91%
rename from sdk/webpubsub/azure-messaging-webpubsub/src/main/java/com/azure/messaging/webpubsub/implementation/AzureWebPubSubServiceRestAPIImpl.java
rename to sdk/webpubsub/azure-messaging-webpubsub/src/main/java/com/azure/messaging/webpubsub/implementation/AzureWebPubSubServiceRestApiImpl.java
index 3697f03db9e70..1a3987f683804 100644
--- a/sdk/webpubsub/azure-messaging-webpubsub/src/main/java/com/azure/messaging/webpubsub/implementation/AzureWebPubSubServiceRestAPIImpl.java
+++ b/sdk/webpubsub/azure-messaging-webpubsub/src/main/java/com/azure/messaging/webpubsub/implementation/AzureWebPubSubServiceRestApiImpl.java
@@ -13,8 +13,8 @@
import com.azure.core.util.serializer.SerializerAdapter;
import com.azure.messaging.webpubsub.WebPubSubServiceVersion;
-/** Initializes a new instance of the AzureWebPubSubServiceRestAPI type. */
-public final class AzureWebPubSubServiceRestAPIImpl {
+/** Initializes a new instance of the AzureWebPubSubServiceRestApi type. */
+public final class AzureWebPubSubServiceRestApiImpl {
/** HTTP or HTTPS endpoint for the Web PubSub service instance. */
private final String endpoint;
@@ -88,12 +88,12 @@ public WebPubSubsImpl getWebPubSubs() {
}
/**
- * Initializes an instance of AzureWebPubSubServiceRestAPI client.
+ * Initializes an instance of AzureWebPubSubServiceRestApi client.
*
* @param endpoint HTTP or HTTPS endpoint for the Web PubSub service instance.
* @param serviceVersion Service version.
*/
- public AzureWebPubSubServiceRestAPIImpl(String endpoint, WebPubSubServiceVersion serviceVersion) {
+ public AzureWebPubSubServiceRestApiImpl(String endpoint, WebPubSubServiceVersion serviceVersion) {
this(
new HttpPipelineBuilder()
.policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
@@ -104,26 +104,26 @@ public AzureWebPubSubServiceRestAPIImpl(String endpoint, WebPubSubServiceVersion
}
/**
- * Initializes an instance of AzureWebPubSubServiceRestAPI client.
+ * Initializes an instance of AzureWebPubSubServiceRestApi client.
*
* @param httpPipeline The HTTP pipeline to send requests through.
* @param endpoint HTTP or HTTPS endpoint for the Web PubSub service instance.
* @param serviceVersion Service version.
*/
- public AzureWebPubSubServiceRestAPIImpl(
+ public AzureWebPubSubServiceRestApiImpl(
HttpPipeline httpPipeline, String endpoint, WebPubSubServiceVersion serviceVersion) {
this(httpPipeline, JacksonAdapter.createDefaultSerializerAdapter(), endpoint, serviceVersion);
}
/**
- * Initializes an instance of AzureWebPubSubServiceRestAPI client.
+ * Initializes an instance of AzureWebPubSubServiceRestApi client.
*
* @param httpPipeline The HTTP pipeline to send requests through.
* @param serializerAdapter The serializer to serialize an object into a string.
* @param endpoint HTTP or HTTPS endpoint for the Web PubSub service instance.
* @param serviceVersion Service version.
*/
- public AzureWebPubSubServiceRestAPIImpl(
+ public AzureWebPubSubServiceRestApiImpl(
HttpPipeline httpPipeline,
SerializerAdapter serializerAdapter,
String endpoint,
diff --git a/sdk/webpubsub/azure-messaging-webpubsub/src/main/java/com/azure/messaging/webpubsub/implementation/HealthApisImpl.java b/sdk/webpubsub/azure-messaging-webpubsub/src/main/java/com/azure/messaging/webpubsub/implementation/HealthApisImpl.java
index 31f540c9dbdc4..df875ba181b47 100644
--- a/sdk/webpubsub/azure-messaging-webpubsub/src/main/java/com/azure/messaging/webpubsub/implementation/HealthApisImpl.java
+++ b/sdk/webpubsub/azure-messaging-webpubsub/src/main/java/com/azure/messaging/webpubsub/implementation/HealthApisImpl.java
@@ -4,6 +4,7 @@
package com.azure.messaging.webpubsub.implementation;
+import com.azure.core.annotation.ExpectedResponses;
import com.azure.core.annotation.Head;
import com.azure.core.annotation.Host;
import com.azure.core.annotation.HostParam;
@@ -25,27 +26,28 @@ public final class HealthApisImpl {
private final HealthApisService service;
/** The service client containing this operation class. */
- private final AzureWebPubSubServiceRestAPIImpl client;
+ private final AzureWebPubSubServiceRestApiImpl client;
/**
* Initializes an instance of HealthApisImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- HealthApisImpl(AzureWebPubSubServiceRestAPIImpl client) {
+ HealthApisImpl(AzureWebPubSubServiceRestApiImpl client) {
this.service =
RestProxy.create(HealthApisService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureWebPubSubServiceRestAPIHealthApis to be used by the proxy
+ * The interface defining all the services for AzureWebPubSubServiceRestApiHealthApis to be used by the proxy
* service to perform REST calls.
*/
@Host("{Endpoint}")
@ServiceInterface(name = "AzureWebPubSubServic")
public interface HealthApisService {
@Head("/api/health")
+ @ExpectedResponses({200})
Mono> getServiceStatus(
@HostParam("Endpoint") String endpoint,
@QueryParam("api-version") String apiVersion,
@@ -65,8 +67,7 @@ Mono> getServiceStatus(
*
*
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return service health status.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -93,8 +94,7 @@ public Mono> getServiceStatusWithResponseAsync(RequestOptions req
*
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return service health status.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -115,8 +115,7 @@ public Mono> getServiceStatusWithResponseAsync(RequestOptions req
*
*
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return service health status.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
diff --git a/sdk/webpubsub/azure-messaging-webpubsub/src/main/java/com/azure/messaging/webpubsub/implementation/WebPubSubsImpl.java b/sdk/webpubsub/azure-messaging-webpubsub/src/main/java/com/azure/messaging/webpubsub/implementation/WebPubSubsImpl.java
index 179ad9c229745..ce1cdc195b891 100644
--- a/sdk/webpubsub/azure-messaging-webpubsub/src/main/java/com/azure/messaging/webpubsub/implementation/WebPubSubsImpl.java
+++ b/sdk/webpubsub/azure-messaging-webpubsub/src/main/java/com/azure/messaging/webpubsub/implementation/WebPubSubsImpl.java
@@ -6,6 +6,7 @@
import com.azure.core.annotation.BodyParam;
import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
import com.azure.core.annotation.Head;
import com.azure.core.annotation.Host;
import com.azure.core.annotation.HostParam;
@@ -31,27 +32,28 @@ public final class WebPubSubsImpl {
private final WebPubSubsService service;
/** The service client containing this operation class. */
- private final AzureWebPubSubServiceRestAPIImpl client;
+ private final AzureWebPubSubServiceRestApiImpl client;
/**
* Initializes an instance of WebPubSubsImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- WebPubSubsImpl(AzureWebPubSubServiceRestAPIImpl client) {
+ WebPubSubsImpl(AzureWebPubSubServiceRestApiImpl client) {
this.service =
RestProxy.create(WebPubSubsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureWebPubSubServiceRestAPIWebPubSubs to be used by the proxy
+ * The interface defining all the services for AzureWebPubSubServiceRestApiWebPubSubs to be used by the proxy
* service to perform REST calls.
*/
@Host("{Endpoint}")
@ServiceInterface(name = "AzureWebPubSubServic")
public interface WebPubSubsService {
@Post("/api/hubs/{hub}/:generateToken")
+ @ExpectedResponses({200})
Mono> generateClientToken(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -60,6 +62,7 @@ Mono> generateClientToken(
Context context);
@Post("/api/hubs/{hub}/:closeConnections")
+ @ExpectedResponses({204})
Mono> closeAllConnections(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -68,6 +71,7 @@ Mono> closeAllConnections(
Context context);
@Post("/api/hubs/{hub}/:send")
+ @ExpectedResponses({202})
Mono> sendToAll(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -77,6 +81,7 @@ Mono> sendToAll(
Context context);
@Head("/api/hubs/{hub}/connections/{connectionId}")
+ @ExpectedResponses({200, 404})
Mono> connectionExists(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -86,6 +91,7 @@ Mono> connectionExists(
Context context);
@Delete("/api/hubs/{hub}/connections/{connectionId}")
+ @ExpectedResponses({204})
Mono> closeConnection(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -95,6 +101,7 @@ Mono> closeConnection(
Context context);
@Post("/api/hubs/{hub}/connections/{connectionId}/:send")
+ @ExpectedResponses({202})
Mono> sendToConnection(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -105,6 +112,7 @@ Mono> sendToConnection(
Context context);
@Head("/api/hubs/{hub}/groups/{group}")
+ @ExpectedResponses({200, 404})
Mono> groupExists(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -114,6 +122,7 @@ Mono> groupExists(
Context context);
@Post("/api/hubs/{hub}/groups/{group}/:closeConnections")
+ @ExpectedResponses({204})
Mono> closeGroupConnections(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -123,6 +132,7 @@ Mono> closeGroupConnections(
Context context);
@Post("/api/hubs/{hub}/groups/{group}/:send")
+ @ExpectedResponses({202})
Mono> sendToGroup(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -133,6 +143,7 @@ Mono> sendToGroup(
Context context);
@Put("/api/hubs/{hub}/groups/{group}/connections/{connectionId}")
+ @ExpectedResponses({200})
Mono> addConnectionToGroup(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -143,6 +154,7 @@ Mono> addConnectionToGroup(
Context context);
@Delete("/api/hubs/{hub}/groups/{group}/connections/{connectionId}")
+ @ExpectedResponses({204})
Mono> removeConnectionFromGroup(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -153,6 +165,7 @@ Mono> removeConnectionFromGroup(
Context context);
@Head("/api/hubs/{hub}/users/{userId}")
+ @ExpectedResponses({200, 404})
Mono> userExists(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -162,6 +175,7 @@ Mono> userExists(
Context context);
@Post("/api/hubs/{hub}/users/{userId}/:closeConnections")
+ @ExpectedResponses({204})
Mono> closeUserConnections(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -171,6 +185,7 @@ Mono> closeUserConnections(
Context context);
@Post("/api/hubs/{hub}/users/{userId}/:send")
+ @ExpectedResponses({202})
Mono> sendToUser(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -181,6 +196,7 @@ Mono> sendToUser(
Context context);
@Put("/api/hubs/{hub}/users/{userId}/groups/{group}")
+ @ExpectedResponses({200})
Mono> addUserToGroup(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -191,6 +207,7 @@ Mono> addUserToGroup(
Context context);
@Delete("/api/hubs/{hub}/users/{userId}/groups/{group}")
+ @ExpectedResponses({204})
Mono> removeUserFromGroup(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -201,6 +218,7 @@ Mono> removeUserFromGroup(
Context context);
@Delete("/api/hubs/{hub}/users/{userId}/groups")
+ @ExpectedResponses({204})
Mono> removeUserFromAllGroups(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -210,6 +228,7 @@ Mono> removeUserFromAllGroups(
Context context);
@Put("/api/hubs/{hub}/permissions/{permission}/connections/{connectionId}")
+ @ExpectedResponses({200})
Mono> grantPermission(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -220,6 +239,7 @@ Mono> grantPermission(
Context context);
@Delete("/api/hubs/{hub}/permissions/{permission}/connections/{connectionId}")
+ @ExpectedResponses({204})
Mono> revokePermission(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -230,6 +250,7 @@ Mono> revokePermission(
Context context);
@Head("/api/hubs/{hub}/permissions/{permission}/connections/{connectionId}")
+ @ExpectedResponses({200, 404})
Mono> checkPermission(
@HostParam("Endpoint") String endpoint,
@PathParam("hub") String hub,
@@ -265,8 +286,7 @@ Mono> checkPermission(
* @param hub Target hub name, which should start with alphabetic characters and only contain alpha-numeric
* characters or underscore.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response object containing the token for the client.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -310,8 +330,7 @@ public Mono> generateClientTokenWithResponseAsync(String hu
* characters or underscore.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response object containing the token for the client.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -349,8 +368,7 @@ public Mono> generateClientTokenWithResponseAsync(
* @param hub Target hub name, which should start with alphabetic characters and only contain alpha-numeric
* characters or underscore.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response object containing the token for the client.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -374,8 +392,7 @@ public Response generateClientTokenWithResponse(String hub, RequestO
* @param hub Target hub name, which should start with alphabetic characters and only contain alpha-numeric
* characters or underscore.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -410,8 +427,7 @@ public Mono> closeAllConnectionsWithResponseAsync(String hub, Req
* characters or underscore.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -440,8 +456,7 @@ public Mono> closeAllConnectionsWithResponseAsync(
* @param hub Target hub name, which should start with alphabetic characters and only contain alpha-numeric
* characters or underscore.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -480,8 +495,7 @@ public Response closeAllConnectionsWithResponse(String hub, RequestOptions
* characters or underscore.
* @param message The payload body.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -536,8 +550,7 @@ public Mono> sendToAllWithResponseAsync(
* @param message The payload body.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -589,8 +602,7 @@ public Mono> sendToAllWithResponseAsync(
* characters or underscore.
* @param message The payload body.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -619,8 +631,7 @@ public Response sendToAllWithResponse(String hub, BinaryData message, Requ
* characters or underscore.
* @param connectionId The connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return whether resource exists.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -665,8 +676,7 @@ public Mono> connectionExistsWithResponseAsync(
* @param connectionId The connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return whether resource exists.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -708,8 +718,7 @@ public Mono> connectionExistsWithResponseAsync(
* characters or underscore.
* @param connectionId The connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -734,8 +743,7 @@ public Response connectionExistsWithResponse(
* characters or underscore.
* @param connectionId Target connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -775,8 +783,7 @@ public Mono> closeConnectionWithResponseAsync(
* @param connectionId Target connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -813,8 +820,7 @@ public Mono> closeConnectionWithResponseAsync(
* characters or underscore.
* @param connectionId Target connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -853,8 +859,7 @@ public Response closeConnectionWithResponse(String hub, String connectionI
* @param connectionId The connection Id.
* @param message The payload body.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -913,8 +918,7 @@ public Mono> sendToConnectionWithResponseAsync(
* @param message The payload body.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -970,8 +974,7 @@ public Mono> sendToConnectionWithResponseAsync(
* @param connectionId The connection Id.
* @param message The payload body.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1001,8 +1004,7 @@ public Response sendToConnectionWithResponse(
* characters or underscore.
* @param group Target group name, which length should be greater than 0 and less than 1025.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return whether resource exists.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1047,8 +1049,7 @@ public Mono> groupExistsWithResponseAsync(
* @param group Target group name, which length should be greater than 0 and less than 1025.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return whether resource exists.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1090,8 +1091,7 @@ public Mono> groupExistsWithResponseAsync(
* characters or underscore.
* @param group Target group name, which length should be greater than 0 and less than 1025.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1116,8 +1116,7 @@ public Response groupExistsWithResponse(String hub, String group, Reque
* characters or underscore.
* @param group Target group name, which length should be greater than 0 and less than 1025.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1158,8 +1157,7 @@ public Mono> closeGroupConnectionsWithResponseAsync(
* @param group Target group name, which length should be greater than 0 and less than 1025.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1197,8 +1195,7 @@ public Mono> closeGroupConnectionsWithResponseAsync(
* characters or underscore.
* @param group Target group name, which length should be greater than 0 and less than 1025.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1238,8 +1235,7 @@ public Response closeGroupConnectionsWithResponse(String hub, String group
* @param group Target group name, which length should be greater than 0 and less than 1025.
* @param message The payload body.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1299,8 +1295,7 @@ public Mono> sendToGroupWithResponseAsync(
* @param message The payload body.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1357,8 +1352,7 @@ public Mono> sendToGroupWithResponseAsync(
* @param group Target group name, which length should be greater than 0 and less than 1025.
* @param message The payload body.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1383,8 +1377,7 @@ public Response sendToGroupWithResponse(
* @param group Target group name, which length should be greater than 0 and less than 1025.
* @param connectionId Target connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1428,8 +1421,7 @@ public Mono> addConnectionToGroupWithResponseAsync(
* @param connectionId Target connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1470,8 +1462,7 @@ public Mono> addConnectionToGroupWithResponseAsync(
* @param group Target group name, which length should be greater than 0 and less than 1025.
* @param connectionId Target connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1496,8 +1487,7 @@ public Response addConnectionToGroupWithResponse(
* @param group Target group name, which length should be greater than 0 and less than 1025.
* @param connectionId Target connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1541,8 +1531,7 @@ public Mono> removeConnectionFromGroupWithResponseAsync(
* @param connectionId Target connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1583,8 +1572,7 @@ public Mono> removeConnectionFromGroupWithResponseAsync(
* @param group Target group name, which length should be greater than 0 and less than 1025.
* @param connectionId Target connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1614,8 +1602,7 @@ public Response removeConnectionFromGroupWithResponse(
* characters or underscore.
* @param userId Target user Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return whether resource exists.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1660,8 +1647,7 @@ public Mono> userExistsWithResponseAsync(
* @param userId Target user Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return whether resource exists.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1703,8 +1689,7 @@ public Mono> userExistsWithResponseAsync(
* characters or underscore.
* @param userId Target user Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1729,8 +1714,7 @@ public Response userExistsWithResponse(String hub, String userId, Reque
* characters or underscore.
* @param userId The user Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1771,8 +1755,7 @@ public Mono> closeUserConnectionsWithResponseAsync(
* @param userId The user Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1810,8 +1793,7 @@ public Mono> closeUserConnectionsWithResponseAsync(
* characters or underscore.
* @param userId The user Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1850,8 +1832,7 @@ public Response closeUserConnectionsWithResponse(String hub, String userId
* @param userId The user Id.
* @param message The payload body.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1910,8 +1891,7 @@ public Mono> sendToUserWithResponseAsync(
* @param message The payload body.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1967,8 +1947,7 @@ public Mono> sendToUserWithResponseAsync(
* @param userId The user Id.
* @param message The payload body.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1993,8 +1972,7 @@ public Response sendToUserWithResponse(
* @param group Target group name, which length should be greater than 0 and less than 1025.
* @param userId Target user Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -2038,8 +2016,7 @@ public Mono> addUserToGroupWithResponseAsync(
* @param userId Target user Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -2080,8 +2057,7 @@ public Mono> addUserToGroupWithResponseAsync(
* @param group Target group name, which length should be greater than 0 and less than 1025.
* @param userId Target user Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -2106,8 +2082,7 @@ public Response addUserToGroupWithResponse(
* @param group Target group name, which length should be greater than 0 and less than 1025.
* @param userId Target user Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -2151,8 +2126,7 @@ public Mono> removeUserFromGroupWithResponseAsync(
* @param userId Target user Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -2193,8 +2167,7 @@ public Mono> removeUserFromGroupWithResponseAsync(
* @param group Target group name, which length should be greater than 0 and less than 1025.
* @param userId Target user Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -2218,8 +2191,7 @@ public Response removeUserFromGroupWithResponse(
* characters or underscore.
* @param userId Target user Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -2258,8 +2230,7 @@ public Mono> removeUserFromAllGroupsWithResponseAsync(
* @param userId Target user Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -2295,8 +2266,7 @@ public Mono> removeUserFromAllGroupsWithResponseAsync(
* characters or underscore.
* @param userId Target user Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -2322,8 +2292,7 @@ public Response removeUserFromAllGroupsWithResponse(
* @param permission The permission: current supported actions are joinLeaveGroup and sendToGroup.
* @param connectionId Target connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -2368,8 +2337,7 @@ public Mono> grantPermissionWithResponseAsync(
* @param connectionId Target connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -2411,8 +2379,7 @@ public Mono> grantPermissionWithResponseAsync(
* @param permission The permission: current supported actions are joinLeaveGroup and sendToGroup.
* @param connectionId Target connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -2438,8 +2405,7 @@ public Response grantPermissionWithResponse(
* @param permission The permission: current supported actions are joinLeaveGroup and sendToGroup.
* @param connectionId Target connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -2484,8 +2450,7 @@ public Mono> revokePermissionWithResponseAsync(
* @param connectionId Target connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -2527,8 +2492,7 @@ public Mono> revokePermissionWithResponseAsync(
* @param permission The permission: current supported actions are joinLeaveGroup and sendToGroup.
* @param connectionId Target connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -2560,8 +2524,7 @@ public Response revokePermissionWithResponse(
* @param permission The permission: current supported actions are joinLeaveGroup and sendToGroup.
* @param connectionId Target connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return whether resource exists.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -2612,8 +2575,7 @@ public Mono> checkPermissionWithResponseAsync(
* @param connectionId Target connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @param context The context to associate with this operation.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return whether resource exists.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -2661,8 +2623,7 @@ public Mono> checkPermissionWithResponseAsync(
* @param permission The permission: current supported actions are joinLeaveGroup and sendToGroup.
* @param connectionId Target connection Id.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
- * false.
+ * @throws HttpResponseException thrown if the request is rejected by server.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
diff --git a/sdk/webpubsub/azure-messaging-webpubsub/src/test/java/com/azure/messaging/webpubsub/WebPubSubServiceClientTests.java b/sdk/webpubsub/azure-messaging-webpubsub/src/test/java/com/azure/messaging/webpubsub/WebPubSubServiceClientTests.java
index 6b19fe5771701..8515157820071 100644
--- a/sdk/webpubsub/azure-messaging-webpubsub/src/test/java/com/azure/messaging/webpubsub/WebPubSubServiceClientTests.java
+++ b/sdk/webpubsub/azure-messaging-webpubsub/src/test/java/com/azure/messaging/webpubsub/WebPubSubServiceClientTests.java
@@ -172,7 +172,7 @@ public void testRemoveNonExistentUserFromHub() {
// TODO (jogiles) can we determine if this user exists anywhere in the current hub?
Response removeUserResponse =
client.removeUserFromAllGroupsWithResponse("testRemoveNonExistentUserFromHub", new RequestOptions());
- assertEquals(200, removeUserResponse.getStatusCode());
+ assertEquals(204, removeUserResponse.getStatusCode());
}
@Test
@@ -204,7 +204,7 @@ public void testGetAuthenticationToken() throws ParseException {
@Test
public void testRemoveNonExistentUserFromGroup() {
assertResponse(client.removeUserFromGroupWithResponse("java",
- "testRemoveNonExistentUserFromGroup", new RequestOptions()), 200);
+ "testRemoveNonExistentUserFromGroup", new RequestOptions()), 204);
}
@Test
diff --git a/sdk/webpubsub/azure-messaging-webpubsub/src/test/resources/session-records/WebPubSubServiceClientTests.testRemoveNonExistentUserFromGroup.json b/sdk/webpubsub/azure-messaging-webpubsub/src/test/resources/session-records/WebPubSubServiceClientTests.testRemoveNonExistentUserFromGroup.json
index 1dd3e22e09ece..e18d0d9f33344 100644
--- a/sdk/webpubsub/azure-messaging-webpubsub/src/test/resources/session-records/WebPubSubServiceClientTests.testRemoveNonExistentUserFromGroup.json
+++ b/sdk/webpubsub/azure-messaging-webpubsub/src/test/resources/session-records/WebPubSubServiceClientTests.testRemoveNonExistentUserFromGroup.json
@@ -3,18 +3,15 @@
"Method" : "DELETE",
"Uri" : "https://REDACTED.webpubsub.azure.com/api/hubs/test/users/testRemoveNonExistentUserFromGroup/groups/java?api-version=2021-10-01",
"Headers" : {
- "User-Agent" : "azsdk-java-azure-messaging-webpubsub/1.0.0-beta.6 (17; Windows 10; 10.0)"
+ "User-Agent" : "azsdk-java-azure-messaging-webpubsub/1.0.0-beta.7 (15.0.1; Windows 10; 10.0)"
},
"Response" : {
- "Transfer-Encoding" : "chunked",
- "Server" : "nginx",
+ "Strict-Transport-Security" : "max-age=15724800; includeSubDomains",
+ "api-supported-versions" : "2021-10-01",
"Connection" : "keep-alive",
- "Vary" : "Accept-Encoding,Accept-Encoding",
"retry-after" : "0",
- "StatusCode" : "200",
- "Body" : "User `testRemoveNonExistentUserFromGroup` is not found.",
- "Date" : "Wed, 03 Nov 2021 18:51:14 GMT",
- "Content-Type" : "text/plain; charset=utf-8"
+ "StatusCode" : "204",
+ "Date" : "Mon, 22 Nov 2021 05:57:07 GMT"
},
"Exception" : null
} ],
diff --git a/sdk/webpubsub/azure-messaging-webpubsub/src/test/resources/session-records/WebPubSubServiceClientTests.testRemoveNonExistentUserFromHub.json b/sdk/webpubsub/azure-messaging-webpubsub/src/test/resources/session-records/WebPubSubServiceClientTests.testRemoveNonExistentUserFromHub.json
index b2550e7785619..bf3b6555e64a2 100644
--- a/sdk/webpubsub/azure-messaging-webpubsub/src/test/resources/session-records/WebPubSubServiceClientTests.testRemoveNonExistentUserFromHub.json
+++ b/sdk/webpubsub/azure-messaging-webpubsub/src/test/resources/session-records/WebPubSubServiceClientTests.testRemoveNonExistentUserFromHub.json
@@ -3,18 +3,15 @@
"Method" : "DELETE",
"Uri" : "https://REDACTED.webpubsub.azure.com/api/hubs/test/users/testRemoveNonExistentUserFromHub/groups?api-version=2021-10-01",
"Headers" : {
- "User-Agent" : "azsdk-java-azure-messaging-webpubsub/1.0.0-beta.6 (17; Windows 10; 10.0)"
+ "User-Agent" : "azsdk-java-azure-messaging-webpubsub/1.0.0-beta.7 (15.0.1; Windows 10; 10.0)"
},
"Response" : {
- "Transfer-Encoding" : "chunked",
- "Server" : "nginx",
+ "Strict-Transport-Security" : "max-age=15724800; includeSubDomains",
+ "api-supported-versions" : "2021-10-01",
"Connection" : "keep-alive",
- "Vary" : "Accept-Encoding,Accept-Encoding",
"retry-after" : "0",
- "StatusCode" : "200",
- "Body" : "User `testRemoveNonExistentUserFromHub` is not found.",
- "Date" : "Wed, 03 Nov 2021 18:51:14 GMT",
- "Content-Type" : "text/plain; charset=utf-8"
+ "StatusCode" : "204",
+ "Date" : "Mon, 22 Nov 2021 05:57:08 GMT"
},
"Exception" : null
} ],
diff --git a/sdk/webpubsub/pom.xml b/sdk/webpubsub/pom.xml
index fafedfc5187b2..04c437df6a007 100644
--- a/sdk/webpubsub/pom.xml
+++ b/sdk/webpubsub/pom.xml
@@ -19,7 +19,7 @@
com.azure
azure-messaging-webpubsub
- 1.0.0-beta.7
+ 1.0.0