Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ com.azure.resourcemanager:azure-resourcemanager-powerbidedicated;1.0.0;1.1.0-bet
com.azure.resourcemanager:azure-resourcemanager-storageimportexport;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-applicationinsights;1.1.0;1.2.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-deploymentmanager;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-notificationhubs;1.0.0-beta.5;1.0.0-beta.6
com.azure.resourcemanager:azure-resourcemanager-notificationhubs;1.0.0-beta.5;1.0.0
com.azure.resourcemanager:azure-resourcemanager-marketplaceordering;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-timeseriesinsights;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-streamanalytics;1.0.0-beta.4;1.0.0-beta.5
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# Release History

## 1.0.0-beta.6 (Unreleased)
## 1.0.0 (2024-12-26)

### Features Added

### Breaking Changes

### Bugs Fixed
- 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).

### Other Changes

- Release for Azure Resource Manager NotificationHubs client library for Java.

## 1.0.0-beta.5 (2024-12-03)

- Azure Resource Manager NotificationHubs client library for Java. This package contains Microsoft Azure SDK for NotificationHubs Management SDK. Microsoft Notification Hubs Resource Provider REST API. Package tag package-preview-2023-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager NotificationHubs client library for Java.

This package contains Microsoft Azure SDK for NotificationHubs Management SDK. Microsoft Notification Hubs Resource Provider REST API. Package tag package-preview-2023-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
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).

## We'd love to hear your feedback

Expand Down 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.5</version>
<version>1.0.0</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
590 changes: 191 additions & 399 deletions sdk/notificationhubs/azure-resourcemanager-notificationhubs/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-notificationhubs</artifactId>
<version>1.0.0-beta.6</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-notificationhubs;current} -->
<version>1.0.0</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-notificationhubs;current} -->
<packaging>jar</packaging>

<name>Microsoft Azure SDK for NotificationHubs Management</name>
<description>This package contains Microsoft Azure SDK for NotificationHubs Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft Notification Hubs Resource Provider REST API. Package tag package-preview-2023-10.</description>
<description>This package contains Microsoft Azure SDK for NotificationHubs Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure NotificationHub client. Package tag package-2017-04.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -45,7 +45,6 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
<spotless.skip>false</spotless.skip>
</properties>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,14 @@
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.notificationhubs.fluent.NotificationHubsRPClient;
import com.azure.resourcemanager.notificationhubs.fluent.NotificationHubsManagementClient;
import com.azure.resourcemanager.notificationhubs.implementation.NamespacesImpl;
import com.azure.resourcemanager.notificationhubs.implementation.NotificationHubsImpl;
import com.azure.resourcemanager.notificationhubs.implementation.NotificationHubsRPClientBuilder;
import com.azure.resourcemanager.notificationhubs.implementation.NotificationHubsManagementClientBuilder;
import com.azure.resourcemanager.notificationhubs.implementation.OperationsImpl;
import com.azure.resourcemanager.notificationhubs.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.notificationhubs.models.Namespaces;
import com.azure.resourcemanager.notificationhubs.models.NotificationHubs;
import com.azure.resourcemanager.notificationhubs.models.Operations;
import com.azure.resourcemanager.notificationhubs.models.PrivateEndpointConnections;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
Expand All @@ -42,23 +40,21 @@

/**
* Entry point to NotificationHubsManager.
* Microsoft Notification Hubs Resource Provider REST API.
* Azure NotificationHub client.
*/
public final class NotificationHubsManager {
private NotificationHubs notificationHubs;
private Operations operations;

private Namespaces namespaces;

private Operations operations;

private PrivateEndpointConnections privateEndpointConnections;
private NotificationHubs notificationHubs;

private final NotificationHubsRPClient clientObject;
private final NotificationHubsManagementClient clientObject;

private NotificationHubsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
this.clientObject = new NotificationHubsRPClientBuilder().pipeline(httpPipeline)
this.clientObject = new NotificationHubsManagementClientBuilder().pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
.defaultPollInterval(defaultPollInterval)
Expand Down Expand Up @@ -217,7 +213,7 @@ public NotificationHubsManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.notificationhubs")
.append("/")
.append("1.0.0-beta.5");
.append("1.0.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
Expand Down Expand Up @@ -264,20 +260,20 @@ public NotificationHubsManager authenticate(TokenCredential credential, AzurePro
}

/**
* Gets the resource collection API of NotificationHubs. It manages NotificationHubResource,
* SharedAccessAuthorizationRuleResource.
* Gets the resource collection API of Operations.
*
* @return Resource collection API of NotificationHubs.
* @return Resource collection API of Operations.
*/
public NotificationHubs notificationHubs() {
if (this.notificationHubs == null) {
this.notificationHubs = new NotificationHubsImpl(clientObject.getNotificationHubs(), this);
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
return notificationHubs;
return operations;
}

/**
* Gets the resource collection API of Namespaces. It manages NamespaceResource.
* Gets the resource collection API of Namespaces. It manages NamespaceResource,
* SharedAccessAuthorizationRuleResource.
*
* @return Resource collection API of Namespaces.
*/
Expand All @@ -289,37 +285,24 @@ public Namespaces namespaces() {
}

/**
* Gets the resource collection API of Operations.
* Gets the resource collection API of NotificationHubs. It manages NotificationHubResource.
*
* @return Resource collection API of Operations.
*/
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
return operations;
}

/**
* Gets the resource collection API of PrivateEndpointConnections.
*
* @return Resource collection API of PrivateEndpointConnections.
* @return Resource collection API of NotificationHubs.
*/
public PrivateEndpointConnections privateEndpointConnections() {
if (this.privateEndpointConnections == null) {
this.privateEndpointConnections
= new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
public NotificationHubs notificationHubs() {
if (this.notificationHubs == null) {
this.notificationHubs = new NotificationHubsImpl(clientObject.getNotificationHubs(), this);
}
return privateEndpointConnections;
return notificationHubs;
}

/**
* Gets wrapped service client NotificationHubsRPClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
* Gets wrapped service client NotificationHubsManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
*
* @return Wrapped service client NotificationHubsRPClient.
* @return Wrapped service client NotificationHubsManagementClient.
*/
public NotificationHubsRPClient serviceClient() {
public NotificationHubsManagementClient serviceClient() {
return this.clientObject;
}
}
Loading