Skip to content

Commit

Permalink
CodeGen from PR 18192 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 9e9ebca8314ed2dc8cd583bb6fb06945d6048c2f into 9aff6fbac1975af94f6a3bc415be84f67d3311ee
  • Loading branch information
SDKAuto committed Mar 15, 2022
1 parent 48cb91c commit cddf3d6
Show file tree
Hide file tree
Showing 56 changed files with 339 additions and 426 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.4 (Unreleased)
## 1.0.0-beta.1 (2022-03-15)

- 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).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-notificationhubs</artifactId>
<version>1.0.0-beta.3</version>
<version>1.0.0-beta.4</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static Configurable configure() {

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

private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
Expand Down Expand Up @@ -156,9 +156,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
this.defaultPollInterval =
Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
throw LOGGER
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
Expand All @@ -180,7 +182,7 @@ public NotificationHubsManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.notificationhubs")
.append("/")
.append("1.0.0-beta.3");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public interface NamespacesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return description of a CheckAvailability resource.
* @return description of a CheckAvailability resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<CheckAvailabilityResultInner> checkAvailabilityWithResponse(
Expand Down Expand Up @@ -78,7 +78,7 @@ NamespaceResourceInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return description of a Namespace resource.
* @return description of a Namespace resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<NamespaceResourceInner> createOrUpdateWithResponse(
Expand Down Expand Up @@ -108,7 +108,7 @@ Response<NamespaceResourceInner> createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return description of a Namespace resource.
* @return description of a Namespace resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<NamespaceResourceInner> patchWithResponse(
Expand All @@ -122,7 +122,7 @@ Response<NamespaceResourceInner> patchWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String namespaceName);
Expand All @@ -136,7 +136,7 @@ Response<NamespaceResourceInner> patchWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String namespaceName, Context context);
Expand Down Expand Up @@ -188,7 +188,7 @@ Response<NamespaceResourceInner> patchWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return description of a Namespace resource.
* @return description of a Namespace resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<NamespaceResourceInner> getByResourceGroupWithResponse(
Expand Down Expand Up @@ -224,7 +224,7 @@ SharedAccessAuthorizationRuleResourceInner createOrUpdateAuthorizationRule(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return description of a Namespace AuthorizationRules.
* @return description of a Namespace AuthorizationRules along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<SharedAccessAuthorizationRuleResourceInner> createOrUpdateAuthorizationRuleWithResponse(
Expand Down Expand Up @@ -257,7 +257,7 @@ Response<SharedAccessAuthorizationRuleResourceInner> createOrUpdateAuthorization
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteAuthorizationRuleWithResponse(
Expand Down Expand Up @@ -288,7 +288,7 @@ SharedAccessAuthorizationRuleResourceInner getAuthorizationRule(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an authorization rule for a namespace by name.
* @return an authorization rule for a namespace by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<SharedAccessAuthorizationRuleResourceInner> getAuthorizationRuleWithResponse(
Expand All @@ -302,7 +302,7 @@ Response<SharedAccessAuthorizationRuleResourceInner> getAuthorizationRuleWithRes
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of the List Namespace operation.
* @return the response of the List Namespace operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<NamespaceResourceInner> listByResourceGroup(String resourceGroupName);
Expand All @@ -316,7 +316,7 @@ Response<SharedAccessAuthorizationRuleResourceInner> getAuthorizationRuleWithRes
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of the List Namespace operation.
* @return the response of the List Namespace operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<NamespaceResourceInner> listByResourceGroup(String resourceGroupName, Context context);
Expand All @@ -326,7 +326,7 @@ Response<SharedAccessAuthorizationRuleResourceInner> getAuthorizationRuleWithRes
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of the List Namespace operation.
* @return the response of the List Namespace operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<NamespaceResourceInner> list();
Expand All @@ -338,7 +338,7 @@ Response<SharedAccessAuthorizationRuleResourceInner> getAuthorizationRuleWithRes
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of the List Namespace operation.
* @return the response of the List Namespace operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<NamespaceResourceInner> list(Context context);
Expand All @@ -351,7 +351,7 @@ Response<SharedAccessAuthorizationRuleResourceInner> getAuthorizationRuleWithRes
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the authorization rules for a namespace.
* @return the authorization rules for a namespace as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<SharedAccessAuthorizationRuleResourceInner> listAuthorizationRules(
Expand All @@ -366,7 +366,7 @@ PagedIterable<SharedAccessAuthorizationRuleResourceInner> listAuthorizationRules
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the authorization rules for a namespace.
* @return the authorization rules for a namespace as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<SharedAccessAuthorizationRuleResourceInner> listAuthorizationRules(
Expand Down Expand Up @@ -396,7 +396,7 @@ PagedIterable<SharedAccessAuthorizationRuleResourceInner> listAuthorizationRules
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Primary and Secondary ConnectionStrings to the namespace.
* @return the Primary and Secondary ConnectionStrings to the namespace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ResourceListKeysInner> listKeysWithResponse(
Expand Down Expand Up @@ -429,7 +429,7 @@ ResourceListKeysInner regenerateKeys(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return namespace/NotificationHub Connection String.
* @return namespace/NotificationHub Connection String along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ResourceListKeysInner> regenerateKeysWithResponse(
Expand Down
Loading

0 comments on commit cddf3d6

Please sign in to comment.