HybridNetworkExtensions.GetPublishers Method

Definition

Overloads

GetPublishers(ResourceGroupResource)

Gets a collection of PublisherResources in the ResourceGroupResource. MockingTo mock this method, please mock GetPublishers() instead.

GetPublishers(SubscriptionResource, CancellationToken)

Lists all the publishers in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.HybridNetwork/publishers
  • Operation Id: Publishers_ListBySubscription

GetPublishers(ResourceGroupResource)

Source:
HybridNetworkExtensions.cs

Gets a collection of PublisherResources in the ResourceGroupResource. MockingTo mock this method, please mock GetPublishers() instead.

public static Azure.ResourceManager.HybridNetwork.PublisherCollection GetPublishers (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetPublishers : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.HybridNetwork.PublisherCollection
<Extension()>
Public Function GetPublishers (resourceGroupResource As ResourceGroupResource) As PublisherCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of PublisherResources and their operations over a PublisherResource.

Exceptions

resourceGroupResource is null.

Applies to

GetPublishers(SubscriptionResource, CancellationToken)

Source:
HybridNetworkExtensions.cs

Lists all the publishers in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.HybridNetwork/publishers
  • Operation Id: Publishers_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.HybridNetwork.PublisherResource> GetPublishers (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetPublishers : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.HybridNetwork.PublisherResource>
<Extension()>
Public Function GetPublishers (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PublisherResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of PublisherResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to