Share via


EventGridNamespaceCollection Class

Definition

A class representing a collection of EventGridNamespaceResource and their operations. Each EventGridNamespaceResource in the collection will belong to the same instance of ResourceGroupResource. To get an EventGridNamespaceCollection instance call the GetEventGridNamespaces method from an instance of ResourceGroupResource.

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

Constructors

EventGridNamespaceCollection()

Initializes a new instance of the EventGridNamespaceCollection 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, EventGridNamespaceData, CancellationToken)

Asynchronously creates or updates a new namespace with the specified parameters.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}
  • Operation Id: Namespaces_CreateOrUpdate
  • Default Api Version: 2024-06-01-preview
  • Resource: EventGridNamespaceResource
CreateOrUpdateAsync(WaitUntil, String, EventGridNamespaceData, CancellationToken)

Asynchronously creates or updates a new namespace with the specified parameters.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}
  • Operation Id: Namespaces_CreateOrUpdate
  • Default Api Version: 2024-06-01-preview
  • Resource: EventGridNamespaceResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}
  • Operation Id: Namespaces_Get
  • Default Api Version: 2024-06-01-preview
  • Resource: EventGridNamespaceResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}
  • Operation Id: Namespaces_Get
  • Default Api Version: 2024-06-01-preview
  • Resource: EventGridNamespaceResource
Get(String, CancellationToken)

Get properties of a namespace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}
  • Operation Id: Namespaces_Get
  • Default Api Version: 2024-06-01-preview
  • Resource: EventGridNamespaceResource
GetAll(String, Nullable<Int32>, CancellationToken)

List all the namespaces under a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces
  • Operation Id: Namespaces_ListByResourceGroup
  • Default Api Version: 2024-06-01-preview
  • Resource: EventGridNamespaceResource
GetAllAsync(String, Nullable<Int32>, CancellationToken)

List all the namespaces under a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces
  • Operation Id: Namespaces_ListByResourceGroup
  • Default Api Version: 2024-06-01-preview
  • Resource: EventGridNamespaceResource
GetAsync(String, CancellationToken)

Get properties of a namespace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}
  • Operation Id: Namespaces_Get
  • Default Api Version: 2024-06-01-preview
  • Resource: EventGridNamespaceResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}
  • Operation Id: Namespaces_Get
  • Default Api Version: 2024-06-01-preview
  • Resource: EventGridNamespaceResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}
  • Operation Id: Namespaces_Get
  • Default Api Version: 2024-06-01-preview
  • Resource: EventGridNamespaceResource
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<EventGridNamespaceResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<EventGridNamespaceResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to