NotificationHubCollection Class

Definition

A class representing a collection of NotificationHubResource and their operations. Each NotificationHubResource in the collection will belong to the same instance of NotificationHubNamespaceResource. To get a NotificationHubCollection instance call the GetNotificationHubs method from an instance of NotificationHubNamespaceResource.

public class NotificationHubCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.NotificationHubs.NotificationHubResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.NotificationHubs.NotificationHubResource>
type NotificationHubCollection = class
    inherit ArmCollection
    interface seq<NotificationHubResource>
    interface IEnumerable
    interface IAsyncEnumerable<NotificationHubResource>
Public Class NotificationHubCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of NotificationHubResource), IEnumerable(Of NotificationHubResource)
Inheritance
NotificationHubCollection
Implements

Constructors

NotificationHubCollection()

Initializes a new instance of the NotificationHubCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, NotificationHubData, CancellationToken)

Creates/Update a NotificationHub in a namespace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}
  • Operation Id: NotificationHubs_CreateOrUpdate
  • Default Api Version: 2023-10-01-preview
  • Resource: NotificationHubResource
CreateOrUpdateAsync(WaitUntil, String, NotificationHubData, CancellationToken)

Creates/Update a NotificationHub in a namespace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}
  • Operation Id: NotificationHubs_CreateOrUpdate
  • Default Api Version: 2023-10-01-preview
  • Resource: NotificationHubResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}
  • Operation Id: NotificationHubs_Get
  • Default Api Version: 2023-10-01-preview
  • Resource: NotificationHubResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}
  • Operation Id: NotificationHubs_Get
  • Default Api Version: 2023-10-01-preview
  • Resource: NotificationHubResource
Get(String, CancellationToken)

Gets the notification hub.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}
  • Operation Id: NotificationHubs_Get
  • Default Api Version: 2023-10-01-preview
  • Resource: NotificationHubResource
GetAll(String, Nullable<Int32>, CancellationToken)

Lists the notification hubs associated with a namespace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs
  • Operation Id: NotificationHubs_List
  • Default Api Version: 2023-10-01-preview
  • Resource: NotificationHubResource
GetAllAsync(String, Nullable<Int32>, CancellationToken)

Lists the notification hubs associated with a namespace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs
  • Operation Id: NotificationHubs_List
  • Default Api Version: 2023-10-01-preview
  • Resource: NotificationHubResource
GetAsync(String, CancellationToken)

Gets the notification hub.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}
  • Operation Id: NotificationHubs_Get
  • Default Api Version: 2023-10-01-preview
  • Resource: NotificationHubResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}
  • Operation Id: NotificationHubs_Get
  • Default Api Version: 2023-10-01-preview
  • Resource: NotificationHubResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}
  • Operation Id: NotificationHubs_Get
  • Default Api Version: 2023-10-01-preview
  • Resource: NotificationHubResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<NotificationHubResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<NotificationHubResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to