Share via


ServiceBusTopicCollection Class

Definition

A class representing a collection of ServiceBusTopicResource and their operations. Each ServiceBusTopicResource in the collection will belong to the same instance of ServiceBusNamespaceResource. To get a ServiceBusTopicCollection instance call the GetServiceBusTopics method from an instance of ServiceBusNamespaceResource.

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

Constructors

ServiceBusTopicCollection()

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

Creates a topic in the specified namespace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}
  • Operation Id: Topics_CreateOrUpdate
  • Default Api Version: 2022-10-01-preview
  • Resource: ServiceBusTopicResource
CreateOrUpdateAsync(WaitUntil, String, ServiceBusTopicData, CancellationToken)

Creates a topic in the specified namespace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}
  • Operation Id: Topics_CreateOrUpdate
  • Default Api Version: 2022-10-01-preview
  • Resource: ServiceBusTopicResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}
  • Operation Id: Topics_Get
  • Default Api Version: 2022-10-01-preview
  • Resource: ServiceBusTopicResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}
  • Operation Id: Topics_Get
  • Default Api Version: 2022-10-01-preview
  • Resource: ServiceBusTopicResource
Get(String, CancellationToken)

Returns a description for the specified topic.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}
  • Operation Id: Topics_Get
  • Default Api Version: 2022-10-01-preview
  • Resource: ServiceBusTopicResource
GetAll(Nullable<Int32>, Nullable<Int32>, CancellationToken)

Gets all the topics in a namespace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics
  • Operation Id: Topics_ListByNamespace
  • Default Api Version: 2022-10-01-preview
  • Resource: ServiceBusTopicResource
GetAllAsync(Nullable<Int32>, Nullable<Int32>, CancellationToken)

Gets all the topics in a namespace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics
  • Operation Id: Topics_ListByNamespace
  • Default Api Version: 2022-10-01-preview
  • Resource: ServiceBusTopicResource
GetAsync(String, CancellationToken)

Returns a description for the specified topic.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}
  • Operation Id: Topics_Get
  • Default Api Version: 2022-10-01-preview
  • Resource: ServiceBusTopicResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}
  • Operation Id: Topics_Get
  • Default Api Version: 2022-10-01-preview
  • Resource: ServiceBusTopicResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}
  • Operation Id: Topics_Get
  • Default Api Version: 2022-10-01-preview
  • Resource: ServiceBusTopicResource
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<ServiceBusTopicResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<ServiceBusTopicResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to