Skip to content

Commit 732e197

Browse files
author
SDKAuto
committed
CodeGen from PR 18192 in Azure/azure-rest-api-specs
Merge 9e9ebca8314ed2dc8cd583bb6fb06945d6048c2f into 9aff6fbac1975af94f6a3bc415be84f67d3311ee
1 parent 48cb91c commit 732e197

File tree

56 files changed

+339
-426
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+339
-426
lines changed

sdk/notificationhubs/azure-resourcemanager-notificationhubs/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.4 (Unreleased)
3+
## 1.0.0-beta.1 (2022-03-15)
4+
5+
- Azure Resource Manager NotificationHubs client library for Java. This package contains Microsoft Azure SDK for NotificationHubs Management SDK. Azure NotificationHub client. Package tag package-2017-04. 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/notificationhubs/azure-resourcemanager-notificationhubs/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-notificationhubs</artifactId>
35-
<version>1.0.0-beta.3</version>
35+
<version>1.0.0-beta.4</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/notificationhubs/azure-resourcemanager-notificationhubs/src/main/java/com/azure/resourcemanager/notificationhubs/NotificationHubsManager.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static Configurable configure() {
8282

8383
/** The Configurable allowing configurations to be set. */
8484
public static final class Configurable {
85-
private final ClientLogger logger = new ClientLogger(Configurable.class);
85+
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
8686

8787
private HttpClient httpClient;
8888
private HttpLogOptions httpLogOptions;
@@ -156,9 +156,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
156156
* @return the configurable object itself.
157157
*/
158158
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
159-
this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
159+
this.defaultPollInterval =
160+
Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
160161
if (this.defaultPollInterval.isNegative()) {
161-
throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
162+
throw LOGGER
163+
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
162164
}
163165
return this;
164166
}
@@ -180,7 +182,7 @@ public NotificationHubsManager authenticate(TokenCredential credential, AzurePro
180182
.append("-")
181183
.append("com.azure.resourcemanager.notificationhubs")
182184
.append("/")
183-
.append("1.0.0-beta.3");
185+
.append("1.0.0-beta.1");
184186
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
185187
userAgentBuilder
186188
.append(" (")

sdk/notificationhubs/azure-resourcemanager-notificationhubs/src/main/java/com/azure/resourcemanager/notificationhubs/fluent/NamespacesClient.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public interface NamespacesClient {
4545
* @throws IllegalArgumentException thrown if parameters fail the validation.
4646
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
4747
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
48-
* @return description of a CheckAvailability resource.
48+
* @return description of a CheckAvailability resource along with {@link Response}.
4949
*/
5050
@ServiceMethod(returns = ReturnType.SINGLE)
5151
Response<CheckAvailabilityResultInner> checkAvailabilityWithResponse(
@@ -78,7 +78,7 @@ NamespaceResourceInner createOrUpdate(
7878
* @throws IllegalArgumentException thrown if parameters fail the validation.
7979
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
8080
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
81-
* @return description of a Namespace resource.
81+
* @return description of a Namespace resource along with {@link Response}.
8282
*/
8383
@ServiceMethod(returns = ReturnType.SINGLE)
8484
Response<NamespaceResourceInner> createOrUpdateWithResponse(
@@ -108,7 +108,7 @@ Response<NamespaceResourceInner> createOrUpdateWithResponse(
108108
* @throws IllegalArgumentException thrown if parameters fail the validation.
109109
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
110110
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
111-
* @return description of a Namespace resource.
111+
* @return description of a Namespace resource along with {@link Response}.
112112
*/
113113
@ServiceMethod(returns = ReturnType.SINGLE)
114114
Response<NamespaceResourceInner> patchWithResponse(
@@ -122,7 +122,7 @@ Response<NamespaceResourceInner> patchWithResponse(
122122
* @throws IllegalArgumentException thrown if parameters fail the validation.
123123
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
124124
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
125-
* @return the completion.
125+
* @return the {@link SyncPoller} for polling of long-running operation.
126126
*/
127127
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
128128
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String namespaceName);
@@ -136,7 +136,7 @@ Response<NamespaceResourceInner> patchWithResponse(
136136
* @throws IllegalArgumentException thrown if parameters fail the validation.
137137
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
138138
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
139-
* @return the completion.
139+
* @return the {@link SyncPoller} for polling of long-running operation.
140140
*/
141141
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
142142
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String namespaceName, Context context);
@@ -188,7 +188,7 @@ Response<NamespaceResourceInner> patchWithResponse(
188188
* @throws IllegalArgumentException thrown if parameters fail the validation.
189189
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
190190
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
191-
* @return description of a Namespace resource.
191+
* @return description of a Namespace resource along with {@link Response}.
192192
*/
193193
@ServiceMethod(returns = ReturnType.SINGLE)
194194
Response<NamespaceResourceInner> getByResourceGroupWithResponse(
@@ -224,7 +224,7 @@ SharedAccessAuthorizationRuleResourceInner createOrUpdateAuthorizationRule(
224224
* @throws IllegalArgumentException thrown if parameters fail the validation.
225225
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
226226
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
227-
* @return description of a Namespace AuthorizationRules.
227+
* @return description of a Namespace AuthorizationRules along with {@link Response}.
228228
*/
229229
@ServiceMethod(returns = ReturnType.SINGLE)
230230
Response<SharedAccessAuthorizationRuleResourceInner> createOrUpdateAuthorizationRuleWithResponse(
@@ -257,7 +257,7 @@ Response<SharedAccessAuthorizationRuleResourceInner> createOrUpdateAuthorization
257257
* @throws IllegalArgumentException thrown if parameters fail the validation.
258258
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
259259
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
260-
* @return the response.
260+
* @return the {@link Response}.
261261
*/
262262
@ServiceMethod(returns = ReturnType.SINGLE)
263263
Response<Void> deleteAuthorizationRuleWithResponse(
@@ -288,7 +288,7 @@ SharedAccessAuthorizationRuleResourceInner getAuthorizationRule(
288288
* @throws IllegalArgumentException thrown if parameters fail the validation.
289289
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
290290
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
291-
* @return an authorization rule for a namespace by name.
291+
* @return an authorization rule for a namespace by name along with {@link Response}.
292292
*/
293293
@ServiceMethod(returns = ReturnType.SINGLE)
294294
Response<SharedAccessAuthorizationRuleResourceInner> getAuthorizationRuleWithResponse(
@@ -302,7 +302,7 @@ Response<SharedAccessAuthorizationRuleResourceInner> getAuthorizationRuleWithRes
302302
* @throws IllegalArgumentException thrown if parameters fail the validation.
303303
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
304304
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
305-
* @return the response of the List Namespace operation.
305+
* @return the response of the List Namespace operation as paginated response with {@link PagedIterable}.
306306
*/
307307
@ServiceMethod(returns = ReturnType.COLLECTION)
308308
PagedIterable<NamespaceResourceInner> listByResourceGroup(String resourceGroupName);
@@ -316,7 +316,7 @@ Response<SharedAccessAuthorizationRuleResourceInner> getAuthorizationRuleWithRes
316316
* @throws IllegalArgumentException thrown if parameters fail the validation.
317317
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
318318
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
319-
* @return the response of the List Namespace operation.
319+
* @return the response of the List Namespace operation as paginated response with {@link PagedIterable}.
320320
*/
321321
@ServiceMethod(returns = ReturnType.COLLECTION)
322322
PagedIterable<NamespaceResourceInner> listByResourceGroup(String resourceGroupName, Context context);
@@ -326,7 +326,7 @@ Response<SharedAccessAuthorizationRuleResourceInner> getAuthorizationRuleWithRes
326326
*
327327
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
328328
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
329-
* @return the response of the List Namespace operation.
329+
* @return the response of the List Namespace operation as paginated response with {@link PagedIterable}.
330330
*/
331331
@ServiceMethod(returns = ReturnType.COLLECTION)
332332
PagedIterable<NamespaceResourceInner> list();
@@ -338,7 +338,7 @@ Response<SharedAccessAuthorizationRuleResourceInner> getAuthorizationRuleWithRes
338338
* @throws IllegalArgumentException thrown if parameters fail the validation.
339339
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
340340
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
341-
* @return the response of the List Namespace operation.
341+
* @return the response of the List Namespace operation as paginated response with {@link PagedIterable}.
342342
*/
343343
@ServiceMethod(returns = ReturnType.COLLECTION)
344344
PagedIterable<NamespaceResourceInner> list(Context context);
@@ -351,7 +351,7 @@ Response<SharedAccessAuthorizationRuleResourceInner> getAuthorizationRuleWithRes
351351
* @throws IllegalArgumentException thrown if parameters fail the validation.
352352
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
353353
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
354-
* @return the authorization rules for a namespace.
354+
* @return the authorization rules for a namespace as paginated response with {@link PagedIterable}.
355355
*/
356356
@ServiceMethod(returns = ReturnType.COLLECTION)
357357
PagedIterable<SharedAccessAuthorizationRuleResourceInner> listAuthorizationRules(
@@ -366,7 +366,7 @@ PagedIterable<SharedAccessAuthorizationRuleResourceInner> listAuthorizationRules
366366
* @throws IllegalArgumentException thrown if parameters fail the validation.
367367
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
368368
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
369-
* @return the authorization rules for a namespace.
369+
* @return the authorization rules for a namespace as paginated response with {@link PagedIterable}.
370370
*/
371371
@ServiceMethod(returns = ReturnType.COLLECTION)
372372
PagedIterable<SharedAccessAuthorizationRuleResourceInner> listAuthorizationRules(
@@ -396,7 +396,7 @@ PagedIterable<SharedAccessAuthorizationRuleResourceInner> listAuthorizationRules
396396
* @throws IllegalArgumentException thrown if parameters fail the validation.
397397
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
398398
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
399-
* @return the Primary and Secondary ConnectionStrings to the namespace.
399+
* @return the Primary and Secondary ConnectionStrings to the namespace along with {@link Response}.
400400
*/
401401
@ServiceMethod(returns = ReturnType.SINGLE)
402402
Response<ResourceListKeysInner> listKeysWithResponse(
@@ -429,7 +429,7 @@ ResourceListKeysInner regenerateKeys(
429429
* @throws IllegalArgumentException thrown if parameters fail the validation.
430430
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
431431
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
432-
* @return namespace/NotificationHub Connection String.
432+
* @return namespace/NotificationHub Connection String along with {@link Response}.
433433
*/
434434
@ServiceMethod(returns = ReturnType.SINGLE)
435435
Response<ResourceListKeysInner> regenerateKeysWithResponse(

0 commit comments

Comments
 (0)