Esempio n. 1
0
 /// <summary>
 /// Creates or updates the specified trusted identity provider. During update,
 /// the trusted identity provider with the specified name will be replaced with
 /// this new provider
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure resource group.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Data Lake Store account.
 /// </param>
 /// <param name='trustedIdProviderName'>
 /// The name of the trusted identity provider. This is used for differentiation
 /// of providers in the account.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to create or replace the trusted identity provider.
 /// </param>
 public static TrustedIdProvider CreateOrUpdate(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName, string trustedIdProviderName, CreateOrUpdateTrustedIdProviderParameters parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, accountName, trustedIdProviderName, parameters).GetAwaiter().GetResult());
 }
Esempio n. 2
0
 /// <summary>
 /// Creates or updates the specified trusted identity provider. During update,
 /// the trusted identity provider with the specified name will be replaced with
 /// this new provider
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure resource group.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Data Lake Store account.
 /// </param>
 /// <param name='trustedIdProviderName'>
 /// The name of the trusted identity provider. This is used for differentiation
 /// of providers in the account.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to create or replace the trusted identity provider.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <TrustedIdProvider> CreateOrUpdateAsync(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName, string trustedIdProviderName, CreateOrUpdateTrustedIdProviderParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, accountName, trustedIdProviderName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }