ComputeExtensions.GetSharedGalleries Method

Definition

List shared galleries by subscription id or tenant id. <item> Mocking. To mock this method, please mock GetSharedGalleries(AzureLocation, Nullable<SharedToValue>, CancellationToken) instead. </item>

public static Azure.Pageable<Azure.ResourceManager.Compute.SharedGalleryData> GetSharedGalleries(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.Compute.Models.SharedToValue? sharedTo = default, System.Threading.CancellationToken cancellationToken = default);
static member GetSharedGalleries : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Nullable<Azure.ResourceManager.Compute.Models.SharedToValue> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.SharedGalleryData>
<Extension()>
Public Function GetSharedGalleries (subscriptionResource As SubscriptionResource, location As AzureLocation, Optional sharedTo As Nullable(Of SharedToValue) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SharedGalleryData)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

location
AzureLocation

The name of the Azure region.

sharedTo
Nullable<SharedToValue>

The query parameter to decide what shared galleries to fetch when doing listing operations.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to