CognitiveServicesExtensions.GetRaiExternalSafetyProviderSchemaAsync Method

Definition

Gets the specified external safety provider associated with the Subscription <item> Mocking. To mock this method, please mock GetRaiExternalSafetyProviderSchemaAsync(String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.RaiExternalSafetyProviderSchemaResource>> GetRaiExternalSafetyProviderSchemaAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string safetyProviderName, System.Threading.CancellationToken cancellationToken = default);
static member GetRaiExternalSafetyProviderSchemaAsync : Azure.ResourceManager.Resources.SubscriptionResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.RaiExternalSafetyProviderSchemaResource>>
<Extension()>
Public Function GetRaiExternalSafetyProviderSchemaAsync (subscriptionResource As SubscriptionResource, safetyProviderName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RaiExternalSafetyProviderSchemaResource))

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

safetyProviderName
String

The name of the Rai External Safety Provider associated with the Cognitive Services Account.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource is null.

Applies to